mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-02-04 11:15:57 +01:00
f0cee3edec
Using Wii U GameCube USB adapter with multiple controllers attached and restarting SDL input in a game results in extra joysticks with NULL name. HIDAPI_CleanupDeviceDriver() shut down joysticks by iterating through device->num_joysticks but each HIDAPI_JoystickDisconnected() decreases device->num_joysticks and shifts joysticks array down. Resulting in only half of controllers being shutdown. It worked with only 1 controller attached though. Disconnect HIDAPI device joystick 0 until there are none left. |
||
---|---|---|
.. | ||
android | ||
bsd | ||
darwin | ||
dummy | ||
emscripten | ||
haiku | ||
hidapi | ||
iphoneos | ||
linux | ||
psp | ||
steam | ||
windows | ||
controller_type.h | ||
SDL_gamecontroller.c | ||
SDL_gamecontrollerdb.h | ||
SDL_joystick_c.h | ||
SDL_joystick.c | ||
SDL_sysjoystick.h | ||
sort_controllers.py |