diff src/video/nds/SDL_ndsevents.c @ 2749:1c5f440a60fe

Initial work for NDS haptic support.
author Darren Alton <dalton@stevens.edu>
date Sat, 06 Sep 2008 00:10:16 +0000
parents 204be4fc2726
children e3affc66d963
line wrap: on
line diff
--- a/src/video/nds/SDL_ndsevents.c	Thu Sep 04 13:43:39 2008 +0000
+++ b/src/video/nds/SDL_ndsevents.c	Sat Sep 06 00:10:16 2008 +0000
@@ -47,7 +47,8 @@
     }
     if (keysHeld() & KEY_TOUCH) {
         touchPosition t = touchReadXY();
-        SDL_SendMouseMotion(0, 0, t.px, t.py);
+        SDL_SendMouseMotion(0, 0, t.px, t.py, 1); /* last arg is pressure,
+                                                     hardcoded 1 for now */
     }
 }