mirror of
https://github.com/encounter/SDL.git
synced 2025-06-14 10:33:41 +00:00
SWITCH: fix crash on exit (hidSetNpadJoyAssignmentModeDual on invalid controller in quit)
This commit is contained in:
parent
1a52258796
commit
53e19d42b9
@ -201,9 +201,6 @@ SDL_SYS_JoystickClose(SDL_Joystick *joystick)
|
||||
void
|
||||
SDL_SYS_JoystickQuit(void)
|
||||
{
|
||||
for (int i = 0; i < JOYSTICK_COUNT; i++) {
|
||||
hidSetNpadJoyAssignmentModeDual(pad[i].id);
|
||||
}
|
||||
}
|
||||
|
||||
SDL_JoystickGUID SDL_SYS_JoystickGetDeviceGUID(int device_index)
|
||||
|
Loading…
x
Reference in New Issue
Block a user