Use the HIDAPI driver for Xbox controllers on Windows, and determine the XInput mapping at runtime for extended functionality like rumble and guide button.

This commit is contained in:
Sam Lantinga 2018-08-15 23:14:45 -07:00
parent 8235f84320
commit 6e0f2d6619
3 changed files with 155 additions and 30 deletions

View file

@ -32,8 +32,7 @@
#define SDL_JOYSTICK_HIDAPI_XBOXONE
#ifdef __WINDOWS__
/* On Windows, Xbox controllers are handled by the XInput driver */
//#undef SDL_JOYSTICK_HIDAPI_XBOX360
/* On Windows, Xbox One controllers are handled by the Xbox 360 driver */
#undef SDL_JOYSTICK_HIDAPI_XBOXONE
#endif