comparison 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
comparison
equal deleted inserted replaced
2748:5668c3dfe7bc 2749:1c5f440a60fe
45 } else if (keysUp() & KEY_TOUCH) { 45 } else if (keysUp() & KEY_TOUCH) {
46 SDL_SendMouseButton(0, SDL_RELEASED, 0); 46 SDL_SendMouseButton(0, SDL_RELEASED, 0);
47 } 47 }
48 if (keysHeld() & KEY_TOUCH) { 48 if (keysHeld() & KEY_TOUCH) {
49 touchPosition t = touchReadXY(); 49 touchPosition t = touchReadXY();
50 SDL_SendMouseMotion(0, 0, t.px, t.py); 50 SDL_SendMouseMotion(0, 0, t.px, t.py, 1); /* last arg is pressure,
51 hardcoded 1 for now */
51 } 52 }
52 } 53 }
53 54
54 /* vi: set ts=4 sw=4 expandtab: */ 55 /* vi: set ts=4 sw=4 expandtab: */