mirror of https://github.com/stella-emu/stella.git
ESC allows exiting Pause mode, TimeMachine mode and Command Menu.
This commit is contained in:
parent
4c9cfad70b
commit
78b807efba
|
@ -1256,6 +1256,19 @@ bool EventHandler::eventStateChange(Event::Type type)
|
||||||
handled = false;
|
handled = false;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case Event::LauncherMode:
|
||||||
|
if (myState == EventHandlerState::PAUSE ||
|
||||||
|
myState == EventHandlerState::TIMEMACHINE)
|
||||||
|
setEventState(EventHandlerState::EMULATION);
|
||||||
|
else if(myState == EventHandlerState::CMDMENU)
|
||||||
|
leaveMenuMode();
|
||||||
|
// TODO: this currently does not work, because it exits all open dialogs too
|
||||||
|
/*else if(myState == EventHandlerState::DEBUGGER)
|
||||||
|
leaveDebugMode();*/
|
||||||
|
else
|
||||||
|
handled = false;
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
handled = false;
|
handled = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -473,7 +473,6 @@ class EventHandler
|
||||||
The following methods take care of assigning action mappings.
|
The following methods take care of assigning action mappings.
|
||||||
*/
|
*/
|
||||||
void setActionMappings(EventMode mode);
|
void setActionMappings(EventMode mode);
|
||||||
void setKeyNames();
|
|
||||||
void setKeymap();
|
void setKeymap();
|
||||||
void setDefaultKeymap(Event::Type, EventMode mode);
|
void setDefaultKeymap(Event::Type, EventMode mode);
|
||||||
void setDefaultJoymap(Event::Type, EventMode mode);
|
void setDefaultJoymap(Event::Type, EventMode mode);
|
||||||
|
|
Loading…
Reference in New Issue