Browse Source

winrt: Fixed incorrect code in a Windows Phone #ifdef.

Ryan C. Gordon 4 years ago
parent
commit
7e88e772d7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/video/winrt/SDL_winrtpointerinput.cpp

+ 2 - 1
src/video/winrt/SDL_winrtpointerinput.cpp

@@ -122,7 +122,8 @@ WINRT_GetSDLButtonForPointerPoint(Windows::UI::Input::PointerPoint ^pt, Uint8 *b
     using namespace Windows::UI::Input;
     using namespace Windows::UI::Input;
 
 
 #if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
 #if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
-    return SDL_BUTTON_LEFT;
+    *button = SDL_BUTTON_LEFT;
+    return SDL_TRUE;
 #else
 #else
     switch (pt->Properties->PointerUpdateKind)
     switch (pt->Properties->PointerUpdateKind)
     {
     {