test/testhotplug.c
changeset 8169 663ba61243ff
parent 8166 d1be9ce49463
child 8180 16afd5b764b3
equal deleted inserted replaced
8168:76d51b45342e 8169:663ba61243ff
   111                     SDL_Log("Button Press: %d\n", event.jbutton.button);
   111                     SDL_Log("Button Press: %d\n", event.jbutton.button);
   112                     if(haptic)
   112                     if(haptic)
   113                     {
   113                     {
   114                         SDL_HapticRumblePlay(haptic, 0.2, 250);
   114                         SDL_HapticRumblePlay(haptic, 0.2, 250);
   115                     }
   115                     }
       
   116 					if (event.jbutton.button == 0) {
       
   117 						SDL_Log("Exiting due to button press of button 0\n");
       
   118 						keepGoing = SDL_FALSE;
       
   119 					}
   116                     break;
   120                     break;
   117                 case SDL_JOYBUTTONUP:
   121                 case SDL_JOYBUTTONUP:
   118                     SDL_Log("Button Release: %d\n", event.jbutton.button);
   122                     SDL_Log("Button Release: %d\n", event.jbutton.button);
   119                     break;
   123                     break;
   120             }
   124             }