mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
Don't use the fake HID endpoint for Xbox controllers on Windows
(cherry picked from commit d5fca9628a)
This commit is contained in:
parent
affc61cc5e
commit
3164b74256
1 changed files with 7 additions and 1 deletions
|
|
@ -34,7 +34,7 @@
|
|||
// #define DEBUG_JOYSTICK
|
||||
|
||||
// Define this if you want to log all packets from the controller
|
||||
#if 0
|
||||
#if 1
|
||||
#define DEBUG_XBOX_PROTOCOL
|
||||
#endif
|
||||
|
||||
|
|
@ -374,6 +374,12 @@ static bool HIDAPI_DriverXboxOne_IsSupportedDevice(SDL_HIDAPI_Device *device, co
|
|||
// we'll just use the GCController support instead.
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
#ifdef SDL_PLATFORM_WIN32
|
||||
if (SDL_strncmp(device->path, "\\\\?\\HID#", 8) == 0) {
|
||||
// Windows provides a fake HID endpoint for XGIP controllers, don't use this
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
if (interface_class &&
|
||||
(interface_class != LIBUSB_CLASS_VENDOR_SPEC ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue