src/video/uikit/SDL_uikitview.m
changeset 6950 1ddb72193079
parent 6885 700f1b25f77f
child 6951 7833f01322b3
     1.1 --- a/src/video/uikit/SDL_uikitview.m	Sat Mar 02 17:51:32 2013 -0800
     1.2 +++ b/src/video/uikit/SDL_uikitview.m	Sat Mar 02 20:44:16 2013 -0800
     1.3 @@ -104,10 +104,10 @@
     1.4              CGPoint locationInView = [self touchLocation:touch shouldNormalize:NO];
     1.5  
     1.6              /* send moved event */
     1.7 -            SDL_SendMouseMotion(NULL, 0, locationInView.x, locationInView.y);
     1.8 +            SDL_SendMouseMotion(NULL, SDL_TOUCH_MOUSEID, 0, locationInView.x, locationInView.y);
     1.9  
    1.10              /* send mouse down event */
    1.11 -            SDL_SendMouseButton(NULL, SDL_PRESSED, SDL_BUTTON_LEFT);
    1.12 +            SDL_SendMouseButton(NULL, SDL_TOUCH_MOUSEID, SDL_PRESSED, SDL_BUTTON_LEFT);
    1.13  
    1.14              leftFingerDown = (SDL_FingerID)touch;
    1.15          }
    1.16 @@ -144,7 +144,7 @@
    1.17      while(touch) {
    1.18          if ((SDL_FingerID)touch == leftFingerDown) {
    1.19              /* send mouse up */
    1.20 -            SDL_SendMouseButton(NULL, SDL_RELEASED, SDL_BUTTON_LEFT);
    1.21 +            SDL_SendMouseButton(NULL, SDL_TOUCH_MOUSEID, SDL_RELEASED, SDL_BUTTON_LEFT);
    1.22              leftFingerDown = 0;
    1.23          }
    1.24  
    1.25 @@ -189,7 +189,7 @@
    1.26              CGPoint locationInView = [self touchLocation:touch shouldNormalize:NO];
    1.27  
    1.28              /* send moved event */
    1.29 -            SDL_SendMouseMotion(NULL, 0, locationInView.x, locationInView.y);
    1.30 +            SDL_SendMouseMotion(NULL, SDL_TOUCH_MOUSEID, 0, locationInView.x, locationInView.y);
    1.31          }
    1.32  
    1.33          CGPoint locationInView = [self touchLocation:touch shouldNormalize:YES];