1
0
mirror of https://github.com/k4zmu2a/SpaceCadetPinball.git synced 2024-11-22 10:42:38 +01:00

Added game controller exit shortcut: back/select when paused.

Ref issue #79.
This commit is contained in:
Muzychenko Andrey 2021-11-01 09:09:19 +03:00
parent 6c299ed103
commit 862fe13dcd

View File

@ -776,6 +776,13 @@ int winmain::event_handler(const SDL_Event* event)
case SDL_CONTROLLER_BUTTON_START: case SDL_CONTROLLER_BUTTON_START:
pause(); pause();
break; break;
case SDL_CONTROLLER_BUTTON_BACK:
if (single_step)
{
SDL_Event event{ SDL_QUIT };
SDL_PushEvent(&event);
}
break;
default:; default:;
} }
break; break;