Browse Source

Use new XInput mapping for Win10+ (Bugzilla #3960)

Ethan Lee 7 years ago
parent
commit
6e3d0a133c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/joystick/windows/SDL_xinputjoystick.c

+ 2 - 1
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) {