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

This commit is contained in:
Ethan Lee 2018-02-21 12:42:30 -05:00
parent 69958441be
commit 6e3d0a133c
1 changed files with 2 additions and 1 deletions

View File

@ -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) {