diff options
author | Martin Kiewitz | 2016-02-01 19:08:22 +0100 |
---|---|---|
committer | Martin Kiewitz | 2016-02-01 19:08:22 +0100 |
commit | 2a4a290d31f7efbd7f35b94930c545ebd14d236d (patch) | |
tree | 289d10d011bdba00927e4a981f58e2526910bc72 /engines/agi/cycle.cpp | |
parent | 9fff1686fc914229d9ed61b94831969449bc4a51 (diff) | |
download | scummvm-rg350-2a4a290d31f7efbd7f35b94930c545ebd14d236d.tar.gz scummvm-rg350-2a4a290d31f7efbd7f35b94930c545ebd14d236d.tar.bz2 scummvm-rg350-2a4a290d31f7efbd7f35b94930c545ebd14d236d.zip |
AGI: change how menus are triggered on Non-PC
Diffstat (limited to 'engines/agi/cycle.cpp')
-rw-r--r-- | engines/agi/cycle.cpp | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/engines/agi/cycle.cpp b/engines/agi/cycle.cpp index dd31fee887..1747452b11 100644 --- a/engines/agi/cycle.cpp +++ b/engines/agi/cycle.cpp @@ -195,10 +195,6 @@ int AgiEngine::mainCycle(bool onlyCheckForEvents) { pollTimer(); } - if (_menu->delayedExecuteActive()) { - _menu->execute(); - } - key = doPollKeyboard(); // In AGI Mouse emulation mode we must update the mouse-related @@ -308,6 +304,10 @@ int AgiEngine::mainCycle(bool onlyCheckForEvents) { } } + if (_menu->delayedExecuteActive()) { + _menu->execute(); + } + if (!onlyCheckForEvents) { if (_game.msgBoxTicks > 0) _game.msgBoxTicks--; @@ -408,23 +408,6 @@ int AgiEngine::playGame() { int AgiEngine::runGame() { int ec = errOK; - // figure out the expected menu trigger for the current platform - // need to trigger the menu via mouse and via keyboard for platforms except PC - if (!(getFeatures() & GF_ESCPAUSE)) { - switch (getPlatform()) { - case Common::kPlatformAmiga: - case Common::kPlatformApple2GS: - _game.specialMenuTriggerKey = AGI_MENU_TRIGGER_APPLE2GS; - break; - case Common::kPlatformAtariST: - _game.specialMenuTriggerKey = AGI_MENU_TRIGGER_ATARIST; - break; - // Macintosh games seem to use ESC key just like PC versions do - default: - break; - } - } - // Execute the game do { debugC(2, kDebugLevelMain, "game loop"); |