src/video/nds/SDL_ndsevents.c
changeset 6950 1ddb72193079
parent 6885 700f1b25f77f
     1.1 --- a/src/video/nds/SDL_ndsevents.c	Sat Mar 02 17:51:32 2013 -0800
     1.2 +++ b/src/video/nds/SDL_ndsevents.c	Sat Mar 02 20:44:16 2013 -0800
     1.3 @@ -37,15 +37,15 @@
     1.4      scanKeys();
     1.5      /* TODO: defer click-age */
     1.6      if (keysDown() & KEY_TOUCH) {
     1.7 -        SDL_SendMouseButton(0, SDL_PRESSED, 0);
     1.8 +        SDL_SendMouseButton(NULL, 0, SDL_PRESSED, 0);
     1.9      } else if (keysUp() & KEY_TOUCH) {
    1.10 -        SDL_SendMouseButton(0, SDL_RELEASED, 0);
    1.11 +        SDL_SendMouseButton(NULL, 0, SDL_RELEASED, 0);
    1.12      }
    1.13      if (keysHeld() & KEY_TOUCH) {
    1.14  		touchPosition t;
    1.15  
    1.16  		touchRead(&t);
    1.17 -        SDL_SendMouseMotion(0, 0, t.px, t.py);
    1.18 +        SDL_SendMouseMotion(NULL, 0, 0, t.px, t.py);
    1.19      }
    1.20  }
    1.21