mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
Quit or RTL from the main menu now triggers an EVENT_QUIT in DefaultEventManager::pollEvent()
svn-id: r32813
This commit is contained in:
parent
c9a8fb25f3
commit
d0dcc1ad79
@ -388,8 +388,11 @@ bool DefaultEventManager::pollEvent(Common::Event &event) {
|
||||
if (event.kbd.keycode == Common::KEYCODE_F11)
|
||||
if (g_engine && !g_engine->isPaused())
|
||||
g_engine->mainMenuDialog();
|
||||
|
||||
break;
|
||||
|
||||
if (!g_engine->_quit)
|
||||
break;
|
||||
else
|
||||
event.type = Common::EVENT_QUIT;
|
||||
|
||||
case Common::EVENT_KEYUP:
|
||||
_modifierState = event.kbd.flags;
|
||||
|
@ -911,8 +911,7 @@ bool Intro::escDelay(uint32 msecs) {
|
||||
if (event.type == Common::EVENT_KEYDOWN) {
|
||||
if (event.kbd.keycode == Common::KEYCODE_ESCAPE)
|
||||
return false;
|
||||
} else if (event.type == Common::EVENT_QUIT || g_engine->_quit) {
|
||||
g_engine->_quit = true;
|
||||
} else if (event.type == Common::EVENT_QUIT) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user