Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Closing the joystick removes it from the list.

  • Loading branch information
slouken committed Nov 29, 2011
1 parent 0038e3c commit 0ea44e936e2cd2f8893d4fb5b7375e777406b876
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/joystick/SDL_joystick.c
@@ -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);

0 comments on commit 0ea44e9

Please sign in to comment.