Skip to content

Commit

Permalink
Use new XInput mapping for Win10+ (Bugzilla #3960)
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Feb 21, 2018
1 parent 6995844 commit 6e3d0a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/joystick/windows/SDL_xinputjoystick.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 6e3d0a1

Please sign in to comment.