diff options
author | Martin Kiewitz | 2016-01-30 02:43:08 +0100 |
---|---|---|
committer | Martin Kiewitz | 2016-01-30 02:43:08 +0100 |
commit | 72f0d012c6fe907c944fe61f465f286981d3a6de (patch) | |
tree | 3472acba51e7866a211372deae65d7f9baa04a94 | |
parent | 125cec693f234a46e0386445c2e87b722597a8b9 (diff) | |
download | scummvm-rg350-72f0d012c6fe907c944fe61f465f286981d3a6de.tar.gz scummvm-rg350-72f0d012c6fe907c944fe61f465f286981d3a6de.tar.bz2 scummvm-rg350-72f0d012c6fe907c944fe61f465f286981d3a6de.zip |
AGI: fix keyboard input code for keycodes
Reset key, when no valid .ascii was received.
-rw-r--r-- | engines/agi/keyboard.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/agi/keyboard.cpp b/engines/agi/keyboard.cpp index 3368ea5c9e..62bcfc2cc4 100644 --- a/engines/agi/keyboard.cpp +++ b/engines/agi/keyboard.cpp @@ -195,9 +195,8 @@ void AgiEngine::processEvents() { } } } else { - key = event.kbd.keycode; - - switch (key) { + key = 0; + switch (event.kbd.keycode) { case Common::KEYCODE_LEFT: case Common::KEYCODE_KP4: if (_allowSynthetic || !event.synthetic) |