mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-10-14 00:57:05 +00:00
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. |
||
---|---|---|
.. | ||
ddk_build | ||
hid.c | ||
hidapi.sln | ||
hidapi.vcproj | ||
hidtest.vcproj | ||
Makefile-manual | ||
Makefile.am | ||
Makefile.mingw |