[Commits] SDL: Use new XInput mapping for Win10+ (Bugzilla #3960)

libsdl.org revision control commits-owner at libsdl.org
Wed Feb 21 10:12:22 PST 2018


details:   https://hg.libsdl.org/SDL/rev/1a033404c88b
changeset: 11887:1a033404c88b
user:      Ethan Lee <flibitijibibo at flibitijibibo.com>
date:      Wed Feb 21 12:42:30 2018 -0500
description:
Use new XInput mapping for Win10+ (Bugzilla #3960)

diffstat:

 src/joystick/windows/SDL_xinputjoystick.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 27d81cb6e6af -r 1a033404c88b src/joystick/windows/SDL_xinputjoystick.c
--- a/src/joystick/windows/SDL_xinputjoystick.c	Wed Feb 21 09:58:21 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) {


More information about the commits mailing list