allow safely quitting the hotplug test by pressing button 0 on the joystick
--HG-- extra : rebase_source : 9efb5a80803409ed4ae754c133b03e5051620a68
This commit is contained in:
parent
4f1f0f7a6c
commit
0f21a3fc45
1 changed files with 4 additions and 0 deletions
|
@ -113,6 +113,10 @@ main(int argc, char *argv[])
|
|||
{
|
||||
SDL_HapticRumblePlay(haptic, 0.2, 250);
|
||||
}
|
||||
if (event.jbutton.button == 0) {
|
||||
SDL_Log("Exiting due to button press of button 0\n");
|
||||
keepGoing = SDL_FALSE;
|
||||
}
|
||||
break;
|
||||
case SDL_JOYBUTTONUP:
|
||||
SDL_Log("Button Release: %d\n", event.jbutton.button);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue