mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-14 02:07:49 +00:00
I have a buggy system which reports a udev "change" event for an empty USB-C port every 0.14 seconds, which causes annoying frame hitches because SDL decides that means it needs to do a libusb hid_enumerate, which is slow (~25ms!) because of the get_usb_string() calls in there. We only need to re-enumerate if we've seen a device added or removed, so let's filter out the change event first. Signed-off-by: Steven Noonan <steven@valvesoftware.com> Signed-off-by: Sam Lantinga <slouken@libsdl.org> |
||
|---|---|---|
| .. | ||
| android | ||
| bsd | ||
| darwin | ||
| dummy | ||
| emscripten | ||
| haiku | ||
| hidapi | ||
| iphoneos | ||
| linux | ||
| os2 | ||
| psp | ||
| steam | ||
| virtual | ||
| vita | ||
| windows | ||
| check_8bitdo.sh | ||
| controller_type.h | ||
| SDL_gamecontroller.c | ||
| SDL_gamecontrollerdb.h | ||
| SDL_joystick.c | ||
| SDL_joystick_c.h | ||
| SDL_sysjoystick.h | ||
| sort_controllers.py | ||
| usb_ids.h | ||