comparison src/video/nds/SDL_ndsevents.c @ 2698:e1da92da346c gsoc2008_nds

Clean up.
author Darren Alton <dalton@stevens.edu>
date Wed, 27 Aug 2008 04:23:38 +0000
parents 3895761db26a
children
comparison
equal deleted inserted replaced
2697:c9121b04cffa 2698:e1da92da346c
38 void 38 void
39 NDS_PumpEvents(_THIS) 39 NDS_PumpEvents(_THIS)
40 { 40 {
41 scanKeys(); 41 scanKeys();
42 /* TODO: defer click-age */ 42 /* TODO: defer click-age */
43 if(keysDown() & KEY_TOUCH) { 43 if (keysDown() & KEY_TOUCH) {
44 SDL_SendMouseButton(0, SDL_PRESSED, 0); 44 SDL_SendMouseButton(0, SDL_PRESSED, 0);
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);
51 } 51 }
52 } 52 }
53 53