From 6e3d0a133c83f2b19e6a285fdd7b3adc3daf0b06 Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Wed, 21 Feb 2018 12:42:30 -0500 Subject: [PATCH] Use new XInput mapping for Win10+ (Bugzilla #3960) --- src/joystick/windows/SDL_xinputjoystick.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/joystick/windows/SDL_xinputjoystick.c b/src/joystick/windows/SDL_xinputjoystick.c index ba2d9050c..823e7674f 100644 --- a/src/joystick/windows/SDL_xinputjoystick.c +++ b/src/joystick/windows/SDL_xinputjoystick.c @@ -41,7 +41,8 @@ SDL_XInputUseOldJoystickMapping() { #ifdef __WINRT__ /* TODO: remove this __WINRT__ block, but only after integrating with UWP/WinRT's HID API */ - return SDL_TRUE; + /* FIXME: Why are Win8/10 different here? -flibit */ + return (NTDDI_VERSION < NTDDI_WIN10); #else static int s_XInputUseOldJoystickMapping = -1; if (s_XInputUseOldJoystickMapping < 0) {