Fixed bug 2873 - Joystick test won't reload after reattach
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Tue, 10 Feb 2015 20:40:03 +0100
changeset 9338 86bc1c9a090f
parent 9337 7e5940a2cda6
child 9339 45c49e8c9416
Fixed bug 2873 - Joystick test won't reload after reattach 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
test/testjoystick.c
--- a/test/testjoystick.c	Tue Feb 10 20:31:05 2015 +0100
+++ b/test/testjoystick.c	Tue Feb 10 20:40:03 2015 +0100
@@ -176,7 +176,7 @@
 {
     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,