mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-20 13:06:05 +00:00
Don't try to interpret Xbox controllers as raw HID devices on Windows
These generate fake reports which don't include separate trigger axes, and the HIDAPI joystick driver doesn't understand this report format.
This commit is contained in:
parent
adad6514d4
commit
b6a88b0339
1 changed files with 5 additions and 0 deletions
|
|
@ -884,6 +884,11 @@ struct hid_device_info HID_API_EXPORT * HID_API_CALL hid_enumerate(unsigned shor
|
|||
HANDLE device_handle = INVALID_HANDLE_VALUE;
|
||||
HIDD_ATTRIBUTES attrib;
|
||||
|
||||
/* XInput devices don't get real HID reports and are better handled by the raw input driver */
|
||||
if (wcsstr(device_interface, L"&IG_") != NULL) {
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Open read-only handle to the device */
|
||||
device_handle = open_device(device_interface, FALSE);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue