Skip to content

Commit

Permalink
Fixed bug 2873 - Joystick test won't reload after reattach
Browse files Browse the repository at this point in the history
lectem

-plug in the joystick
-start testjoystick 0
-unplug
-replug

The joystick is detected but doesn't enter the loop anymore since done==SDL_TRUE
  • Loading branch information
philippwiesemann committed Feb 10, 2015
1 parent bd61c27 commit 39c41bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testjoystick.c
Expand Up @@ -176,7 +176,7 @@ WatchJoystick(SDL_Joystick * joystick)
{
SDL_Window *window = NULL;
const char *name = NULL;

done = SDL_FALSE;

/* Create a window to display joystick axis position */
window = SDL_CreateWindow("Joystick Test", SDL_WINDOWPOS_CENTERED,
Expand Down

0 comments on commit 39c41bb

Please sign in to comment.