# HG changeset patch # User Ethan Lee # Date 1519234950 18000 # Wed Feb 21 12:42:30 2018 -0500 # Node ID 9e755beeb0a400bb217950ac8c8428657f59466f # Parent 728f670288e47ab1966b13c332141dcf802f71dd Use new XInput mapping for Win10+ (Bugzilla #3960) diff -r 728f670288e4 -r 9e755beeb0a4 src/joystick/windows/SDL_xinputjoystick.c --- a/src/joystick/windows/SDL_xinputjoystick.c Tue Feb 20 09:04:31 2018 -0800 +++ b/src/joystick/windows/SDL_xinputjoystick.c Wed Feb 21 12:42:30 2018 -0500 @@ -41,7 +41,8 @@ { #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) {