mirror of
https://github.com/yawut/SDL.git
synced 2026-08-02 16:33:52 -05:00
Closing the joystick removes it from the list.
This commit is contained in:
parent
c7f0996903
commit
1dc86eeece
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user