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 933886bc1c9a090f
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
     1.1 --- a/test/testjoystick.c	Tue Feb 10 20:31:05 2015 +0100
     1.2 +++ b/test/testjoystick.c	Tue Feb 10 20:40:03 2015 +0100
     1.3 @@ -176,7 +176,7 @@
     1.4  {
     1.5      SDL_Window *window = NULL;
     1.6      const char *name = NULL;
     1.7 -
     1.8 +    done = SDL_FALSE;
     1.9  
    1.10      /* Create a window to display joystick axis position */
    1.11      window = SDL_CreateWindow("Joystick Test", SDL_WINDOWPOS_CENTERED,