Mercurial > sdl-ios-xcode
comparison src/video/nds/SDL_ndsevents.c @ 2750:e3affc66d963
Fixes to the NDS sprite2 test. Illustrates partially working texture-as-sprite functionality.
author | Darren Alton <dalton@stevens.edu> |
---|---|
date | Sat, 06 Sep 2008 04:31:34 +0000 |
parents | 1c5f440a60fe |
children | 99210400e8b9 |
comparison
equal
deleted
inserted
replaced
2749:1c5f440a60fe | 2750:e3affc66d963 |
---|---|
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, 1); /* last arg is pressure, | 50 SDL_SendMouseMotion(0, 0, t.px, t.py, 1); /* last arg is pressure, |
51 hardcoded 1 for now */ | 51 hardcoded 1 for now */ |
52 } | 52 } |
53 } | 53 } |
54 | 54 |
55 /* vi: set ts=4 sw=4 expandtab: */ | 55 /* vi: set ts=4 sw=4 expandtab: */ |