SDL/src/hidapi/windows
Cameron Gutman 5ed71f3bc0 Only enumerate HID devices on Windows that have gamepad HID usages
There are a number of poorly behaved HID devices that time out on attempts to
read various strings. Rather than end up on an endless treadmill of blacklisting
broken devices, reduce our risk by only querying devices that are gamepads.
SDL_hidapijoystick.c already checks these same usages, so we shouldn't
exclude any working HID devices (caveat below).

This also makes HidP_GetPreparsedData() and HidP_GetCaps() failure skip
the device entirely, but that seems desired. If a device can't even return basic
top-level collection data properly, we want nothing to do with that broken device.
If we do find devices that work with HIDAPI joystick and fail these calls, we can
add an exception via VID+PID matching.
2020-03-20 13:44:50 -07:00
..
ddk_build Added missing files from previous commits 2018-08-09 16:05:48 -07:00
hid.c Only enumerate HID devices on Windows that have gamepad HID usages 2020-03-20 13:44:50 -07:00
hidapi.sln Added missing files from previous commits 2018-08-09 16:05:48 -07:00
hidapi.vcproj Added missing files from previous commits 2018-08-09 16:05:48 -07:00
hidtest.vcproj Added missing files from previous commits 2018-08-09 16:05:48 -07:00
Makefile-manual Added missing files from previous commits 2018-08-09 16:05:48 -07:00
Makefile.am Added missing files from previous commits 2018-08-09 16:05:48 -07:00
Makefile.mingw Added missing files from previous commits 2018-08-09 16:05:48 -07:00