Zack Middleton f0cee3edec Fix shutting down HIDAPI device with multiple joysticks
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.
2019-12-22 13:15:11 -08:00
..
2019-10-11 22:08:53 +01:00
2019-01-04 22:01:14 -08:00
2019-10-30 16:20:58 +01:00
2019-11-11 22:23:33 -05:00
2019-11-02 22:58:52 +00:00
2019-01-04 22:01:14 -08:00
2019-01-04 22:01:14 -08:00
2019-01-04 22:01:14 -08:00
2019-01-04 22:01:14 -08:00
2019-01-04 22:01:14 -08:00
2019-11-16 22:59:56 +01:00
2019-01-04 22:01:14 -08:00