From 7e88e772d7cbba3d7ea4d79210ec427fa94ba870 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 4 Aug 2021 02:30:47 -0400 Subject: [PATCH] winrt: Fixed incorrect code in a Windows Phone #ifdef. --- src/video/winrt/SDL_winrtpointerinput.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/video/winrt/SDL_winrtpointerinput.cpp b/src/video/winrt/SDL_winrtpointerinput.cpp index 1639083f0..26d215078 100644 --- a/src/video/winrt/SDL_winrtpointerinput.cpp +++ b/src/video/winrt/SDL_winrtpointerinput.cpp @@ -122,7 +122,8 @@ WINRT_GetSDLButtonForPointerPoint(Windows::UI::Input::PointerPoint ^pt, Uint8 *b using namespace Windows::UI::Input; #if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP - return SDL_BUTTON_LEFT; + *button = SDL_BUTTON_LEFT; + return SDL_TRUE; #else switch (pt->Properties->PointerUpdateKind) {