src/video/android/SDL_androidtouch.c
changeset 8963 f94215b55583
parent 8149 681eb46b8ac4
child 9438 fff5af5de6dd
     1.1 --- a/src/video/android/SDL_androidtouch.c	Sat Jun 28 12:17:29 2014 -0300
     1.2 +++ b/src/video/android/SDL_androidtouch.c	Sat Jun 28 12:36:44 2014 -0300
     1.3 @@ -86,9 +86,9 @@
     1.4              /* Primary pointer down */
     1.5              Android_GetWindowCoordinates(x, y, &window_x, &window_y);
     1.6              /* send moved event */
     1.7 -            SDL_SendMouseMotion(NULL, SDL_TOUCH_MOUSEID, 0, window_x, window_y);
     1.8 +            SDL_SendMouseMotion(Android_Window, SDL_TOUCH_MOUSEID, 0, window_x, window_y);
     1.9              /* send mouse down event */
    1.10 -            SDL_SendMouseButton(NULL, SDL_TOUCH_MOUSEID, SDL_PRESSED, SDL_BUTTON_LEFT);
    1.11 +            SDL_SendMouseButton(Android_Window, SDL_TOUCH_MOUSEID, SDL_PRESSED, SDL_BUTTON_LEFT);
    1.12              pointerFingerID = fingerId;
    1.13          case ACTION_POINTER_DOWN:
    1.14              /* Non primary pointer down */
    1.15 @@ -100,7 +100,7 @@
    1.16                  Android_GetWindowCoordinates(x, y, &window_x, &window_y);
    1.17  
    1.18                  /* send moved event */
    1.19 -                SDL_SendMouseMotion(NULL, SDL_TOUCH_MOUSEID, 0, window_x, window_y);
    1.20 +                SDL_SendMouseMotion(Android_Window, SDL_TOUCH_MOUSEID, 0, window_x, window_y);
    1.21              }
    1.22              SDL_SendTouchMotion(touchDeviceId, fingerId, x, y, p);
    1.23              break;
    1.24 @@ -109,7 +109,7 @@
    1.25              /* Primary pointer up */
    1.26              /* send mouse up */
    1.27              pointerFingerID = (SDL_FingerID) 0;
    1.28 -            SDL_SendMouseButton(NULL, SDL_TOUCH_MOUSEID, SDL_RELEASED, SDL_BUTTON_LEFT);
    1.29 +            SDL_SendMouseButton(Android_Window, SDL_TOUCH_MOUSEID, SDL_RELEASED, SDL_BUTTON_LEFT);
    1.30          case ACTION_POINTER_UP:
    1.31              /* Non primary pointer up */
    1.32              SDL_SendTouch(touchDeviceId, fingerId, SDL_FALSE, x, y, p);