test/testhotplug.c
changeset 8169 663ba61243ff
parent 8166 d1be9ce49463
child 8180 16afd5b764b3
     1.1 --- a/test/testhotplug.c	Tue Feb 04 12:28:35 2014 -0800
     1.2 +++ b/test/testhotplug.c	Tue Feb 04 15:40:51 2014 -0500
     1.3 @@ -113,6 +113,10 @@
     1.4                      {
     1.5                          SDL_HapticRumblePlay(haptic, 0.2, 250);
     1.6                      }
     1.7 +					if (event.jbutton.button == 0) {
     1.8 +						SDL_Log("Exiting due to button press of button 0\n");
     1.9 +						keepGoing = SDL_FALSE;
    1.10 +					}
    1.11                      break;
    1.12                  case SDL_JOYBUTTONUP:
    1.13                      SDL_Log("Button Release: %d\n", event.jbutton.button);