mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2023-12-30 21:52:56 +00:00
Added game controller exit shortcut: back/select when paused.
Ref issue #79.
This commit is contained in:
parent
6c299ed103
commit
862fe13dcd
@ -776,7 +776,14 @@ int winmain::event_handler(const SDL_Event* event)
|
|||||||
case SDL_CONTROLLER_BUTTON_START:
|
case SDL_CONTROLLER_BUTTON_START:
|
||||||
pause();
|
pause();
|
||||||
break;
|
break;
|
||||||
default: ;
|
case SDL_CONTROLLER_BUTTON_BACK:
|
||||||
|
if (single_step)
|
||||||
|
{
|
||||||
|
SDL_Event event{ SDL_QUIT };
|
||||||
|
SDL_PushEvent(&event);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SDL_CONTROLLERBUTTONUP:
|
case SDL_CONTROLLERBUTTONUP:
|
||||||
|
Loading…
Reference in New Issue
Block a user