Skip to content

Commit

Permalink
WinRT: fixed multi-touch bug whereby 2nd, 3rd, etc. fingers weren't m…
Browse files Browse the repository at this point in the history
…oving

Only the first-pressed finger wpuld get reported as having moved (via SDL's
touch APIs).  Subsequently pressed fingers wouldn't report as being moved, even
though the OS was reporting (to SDL) that they had moved.
  • Loading branch information
DavidLudwig committed Nov 9, 2014
1 parent 743ba2f commit 49c9b48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/winrt/SDL_winrtpointerinput.cpp
Expand Up @@ -262,7 +262,7 @@ WINRT_ProcessPointerMovedEvent(SDL_Window *window, Windows::UI::Input::PointerPo

if ( ! WINRT_IsTouchEvent(pointerPoint)) {
SDL_SendMouseMotion(window, 0, 0, (int)windowPoint.X, (int)windowPoint.Y);
} else if (pointerPoint->PointerId == WINRT_LeftFingerDown) {
} else {
if (pointerPoint->PointerId == WINRT_LeftFingerDown) {
SDL_SendMouseMotion(window, 0, 0, (int)windowPoint.X, (int)windowPoint.Y);
}
Expand Down

0 comments on commit 49c9b48

Please sign in to comment.