diff options
author | Johannes Schickel | 2009-05-17 21:52:31 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-05-17 21:52:31 +0000 |
commit | 76285301aa191bcfc69aa6ae9b5caafc4eed0102 (patch) | |
tree | 48fa0a5feec523cb4e5773486d15cc0405c03c39 | |
parent | 1b74d8557a220581d5ce7a609b1c88fcde4d04a2 (diff) | |
download | scummvm-rg350-76285301aa191bcfc69aa6ae9b5caafc4eed0102.tar.gz scummvm-rg350-76285301aa191bcfc69aa6ae9b5caafc4eed0102.tar.bz2 scummvm-rg350-76285301aa191bcfc69aa6ae9b5caafc4eed0102.zip |
Handle keyboard button press immediately.
svn-id: r40657
-rw-r--r-- | engines/kyra/kyra_v1.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/kyra/kyra_v1.cpp b/engines/kyra/kyra_v1.cpp index 8df059db0d..80be55374a 100644 --- a/engines/kyra/kyra_v1.cpp +++ b/engines/kyra/kyra_v1.cpp @@ -315,8 +315,14 @@ int KyraEngine_v1::checkInput(Button *buttonList, bool mainLoop) { keys = 110; break; default: + keys = 0; break; } + + // When we got an keypress we might handle, break the event loop + // and pass it to GUI code. + if (keys) + breakLoop = true; } break; |