Ryujinx-SDL/src/joystick
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
..
android Automatically assign player indexes to game controllers, and allow changing the player index for game controllers and joysticks. 2019-12-20 20:12:03 -08:00
bsd Automatically assign player indexes to game controllers, and allow changing the player index for game controllers and joysticks. 2019-12-20 20:12:03 -08:00
darwin Automatically assign player indexes to game controllers, and allow changing the player index for game controllers and joysticks. 2019-12-20 20:12:03 -08:00
dummy Automatically assign player indexes to game controllers, and allow changing the player index for game controllers and joysticks. 2019-12-20 20:12:03 -08:00
emscripten Automatically assign player indexes to game controllers, and allow changing the player index for game controllers and joysticks. 2019-12-20 20:12:03 -08:00
haiku Automatically assign player indexes to game controllers, and allow changing the player index for game controllers and joysticks. 2019-12-20 20:12:03 -08:00
hidapi Fix shutting down HIDAPI device with multiple joysticks 2019-12-22 13:15:11 -08:00
iphoneos Automatically assign player indexes to game controllers, and allow changing the player index for game controllers and joysticks. 2019-12-20 20:12:03 -08:00
linux Automatically assign player indexes to game controllers, and allow changing the player index for game controllers and joysticks. 2019-12-20 20:12:03 -08:00
psp Updated copyright for 2019 2019-01-04 22:01:14 -08:00
steam Updated copyright for 2019 2019-01-04 22:01:14 -08:00
windows Fixed windows build 2019-12-21 22:33:21 -08:00
controller_type.h Added support for the Hori Dragon Quest Slime Controller 2019-12-20 21:40:28 -08:00
SDL_gamecontroller.c Automatically assign player indexes to game controllers, and allow changing the player index for game controllers and joysticks. 2019-12-20 20:12:03 -08:00
SDL_gamecontrollerdb.h Added support for the Nintendo GameCube Controller, using the Mayflash GameCube adapter. 2019-12-19 16:14:22 -08:00
SDL_joystick_c.h Automatically assign player indexes to game controllers, and allow changing the player index for game controllers and joysticks. 2019-12-20 20:12:03 -08:00
SDL_joystick.c Automatically assign player indexes to game controllers, and allow changing the player index for game controllers and joysticks. 2019-12-20 20:12:03 -08:00
SDL_sysjoystick.h Automatically assign player indexes to game controllers, and allow changing the player index for game controllers and joysticks. 2019-12-20 20:12:03 -08:00
sort_controllers.py Revert SDL_gamecontrollerdb.h and sort_controllers.py from bug 4024 2019-01-21 20:49:08 +01:00