src/video/uikit/SDL_uikitview.m
changeset 12979 bbbb30026158
parent 12866 286fefb0209c
     1.1 --- a/src/video/uikit/SDL_uikitview.m	Thu Aug 01 17:41:40 2019 +0300
     1.2 +++ b/src/video/uikit/SDL_uikitview.m	Thu Aug 01 18:22:12 2019 -0300
     1.3 @@ -198,7 +198,7 @@
     1.4          /* FIXME, need to send: int clicks = (int) touch.tapCount; ? */
     1.5  
     1.6          CGPoint locationInView = [self touchLocation:touch shouldNormalize:YES];
     1.7 -        SDL_SendTouch(touchId, (SDL_FingerID)((size_t)touch),
     1.8 +        SDL_SendTouch(touchId, (SDL_FingerID)((size_t)touch), sdlwindow,
     1.9                        SDL_TRUE, locationInView.x, locationInView.y, pressure);
    1.10      }
    1.11  }
    1.12 @@ -217,7 +217,7 @@
    1.13          /* FIXME, need to send: int clicks = (int) touch.tapCount; ? */
    1.14  
    1.15          CGPoint locationInView = [self touchLocation:touch shouldNormalize:YES];
    1.16 -        SDL_SendTouch(touchId, (SDL_FingerID)((size_t)touch),
    1.17 +        SDL_SendTouch(touchId, (SDL_FingerID)((size_t)touch), sdlwindow,
    1.18                        SDL_FALSE, locationInView.x, locationInView.y, pressure);
    1.19      }
    1.20  }
    1.21 @@ -239,7 +239,7 @@
    1.22          }
    1.23  
    1.24          CGPoint locationInView = [self touchLocation:touch shouldNormalize:YES];
    1.25 -        SDL_SendTouchMotion(touchId, (SDL_FingerID)((size_t)touch),
    1.26 +        SDL_SendTouchMotion(touchId, (SDL_FingerID)((size_t)touch), sdlwindow,
    1.27                              locationInView.x, locationInView.y, pressure);
    1.28      }
    1.29  }