src/video/winrt/SDL_winrtpointerinput.cpp
changeset 9220 1cb6ac648db7
parent 8757 aeeeb47a5a77
child 9226 bea2e725e29a
equal deleted inserted replaced
9219:c65108ddbeb0 9220:1cb6ac648db7
   260     Windows::Foundation::Point normalizedPoint = WINRT_TransformCursorPosition(window, pointerPoint->Position, NormalizeZeroToOne);
   260     Windows::Foundation::Point normalizedPoint = WINRT_TransformCursorPosition(window, pointerPoint->Position, NormalizeZeroToOne);
   261     Windows::Foundation::Point windowPoint = WINRT_TransformCursorPosition(window, pointerPoint->Position, TransformToSDLWindowSize);
   261     Windows::Foundation::Point windowPoint = WINRT_TransformCursorPosition(window, pointerPoint->Position, TransformToSDLWindowSize);
   262 
   262 
   263     if ( ! WINRT_IsTouchEvent(pointerPoint)) {
   263     if ( ! WINRT_IsTouchEvent(pointerPoint)) {
   264         SDL_SendMouseMotion(window, 0, 0, (int)windowPoint.X, (int)windowPoint.Y);
   264         SDL_SendMouseMotion(window, 0, 0, (int)windowPoint.X, (int)windowPoint.Y);
   265     } else if (pointerPoint->PointerId == WINRT_LeftFingerDown) {
   265     } else {
   266         if (pointerPoint->PointerId == WINRT_LeftFingerDown) {
   266         if (pointerPoint->PointerId == WINRT_LeftFingerDown) {
   267             SDL_SendMouseMotion(window, 0, 0, (int)windowPoint.X, (int)windowPoint.Y);
   267             SDL_SendMouseMotion(window, 0, 0, (int)windowPoint.X, (int)windowPoint.Y);
   268         }
   268         }
   269 
   269 
   270         SDL_SendTouchMotion(
   270         SDL_SendTouchMotion(