mirror of
https://github.com/86Box/86Box.git
synced 2026-02-22 09:35:32 -07:00
back to main menu with esc key
This commit is contained in:
@@ -372,9 +372,18 @@ int osd_handle(SDL_Event event)
|
||||
{
|
||||
if (event.key.keysym.scancode == SDL_SCANCODE_ESCAPE)
|
||||
{
|
||||
// Close the OSD
|
||||
// debug: fprintf(stderr, "OSD HANDLE: escape\n");
|
||||
return 0;
|
||||
if (state == STATE_MENU)
|
||||
{
|
||||
// Close the OSD
|
||||
// debug: fprintf(stderr, "OSD HANDLE: escape\n");
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Back to Main and keep it open
|
||||
state = STATE_MENU;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (state == STATE_MENU)
|
||||
|
||||
Reference in New Issue
Block a user