diff options
author | Matthew Hoops | 2011-05-11 22:59:36 -0400 |
---|---|---|
committer | Matthew Hoops | 2011-05-11 22:59:36 -0400 |
commit | 02b023e2660612f7dadc8cca0233c123ae41b950 (patch) | |
tree | 6a43a75f3d5932eefa9c030d7fedec3d56297884 | |
parent | 866a8dddd1733734eb47091a21ccff00c416120b (diff) | |
download | scummvm-rg350-02b023e2660612f7dadc8cca0233c123ae41b950.tar.gz scummvm-rg350-02b023e2660612f7dadc8cca0233c123ae41b950.tar.bz2 scummvm-rg350-02b023e2660612f7dadc8cca0233c123ae41b950.zip |
PEGASUS: Ignore meta keys in the overview
-rw-r--r-- | engines/pegasus/overview.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/pegasus/overview.cpp b/engines/pegasus/overview.cpp index 249d76a3cd..7ba4d65c93 100644 --- a/engines/pegasus/overview.cpp +++ b/engines/pegasus/overview.cpp @@ -53,10 +53,13 @@ void PegasusEngine::runInterfaceOverview() { while (_eventMan->pollEvent(event)) { switch (event.type) { case Common::EVENT_MOUSEMOVE: + // TODO: Highlighted images and changing the viewscreen image _system->updateScreen(); break; case Common::EVENT_KEYDOWN: - continueLooping = false; + // Break on any keypress, but ignore the meta keys + // Except for num lock! num lock on OS9 is 'clear' and we need that for the inventory panel (along with the tilde) + continueLooping = (event.kbd.keycode == Common::KEYCODE_INVALID || (event.kbd.keycode >= Common::KEYCODE_CAPSLOCK && event.kbd.keycode <= Common::KEYCODE_COMPOSE)); break; default: break; |