mirror of
https://github.com/yawut/SDL.git
synced 2026-09-06 16:16:21 -05:00
Closing the joystick removes it from the list.
This commit is contained in:
@@ -404,7 +404,7 @@ SDL_JoystickQuit(void)
|
||||
SDL_numjoysticks = 0;
|
||||
|
||||
for (i = 0; i < numsticks; i++) {
|
||||
SDL_Joystick *stick = SDL_joysticks[i];
|
||||
SDL_Joystick *stick = SDL_joysticks[0];
|
||||
if (stick && (stick->ref_count >= 1)) {
|
||||
stick->ref_count = 1;
|
||||
SDL_JoystickClose(stick);
|
||||
|
||||
Reference in New Issue
Block a user