WinRT: fixed multi-touch bug whereby 2nd, 3rd, etc. fingers weren't moving
authorDavid Ludwig <dludwig@pobox.com>
Sun, 09 Nov 2014 14:20:53 -0500
changeset 92201cb6ac648db7
parent 9219 c65108ddbeb0
child 9221 0702f9d6e2b1
WinRT: fixed multi-touch bug whereby 2nd, 3rd, etc. fingers weren't moving

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.
src/video/winrt/SDL_winrtpointerinput.cpp
     1.1 --- a/src/video/winrt/SDL_winrtpointerinput.cpp	Fri Nov 07 10:02:45 2014 +0100
     1.2 +++ b/src/video/winrt/SDL_winrtpointerinput.cpp	Sun Nov 09 14:20:53 2014 -0500
     1.3 @@ -262,7 +262,7 @@
     1.4  
     1.5      if ( ! WINRT_IsTouchEvent(pointerPoint)) {
     1.6          SDL_SendMouseMotion(window, 0, 0, (int)windowPoint.X, (int)windowPoint.Y);
     1.7 -    } else if (pointerPoint->PointerId == WINRT_LeftFingerDown) {
     1.8 +    } else {
     1.9          if (pointerPoint->PointerId == WINRT_LeftFingerDown) {
    1.10              SDL_SendMouseMotion(window, 0, 0, (int)windowPoint.X, (int)windowPoint.Y);
    1.11          }