aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kiewitz2016-01-28 20:19:34 +0100
committerMartin Kiewitz2016-01-28 20:19:34 +0100
commitfa66b823b835cad3ab0ca35636ae309a1d002b41 (patch)
tree89ff5744cfc9714703c67bc25961eb637b1f5c9e
parent314379e9291f5f30fddc1fded6efd330a16da8c2 (diff)
downloadscummvm-rg350-fa66b823b835cad3ab0ca35636ae309a1d002b41.tar.gz
scummvm-rg350-fa66b823b835cad3ab0ca35636ae309a1d002b41.tar.bz2
scummvm-rg350-fa66b823b835cad3ab0ca35636ae309a1d002b41.zip
SCI: change ascii detection for key event handling
New way is probably better. Sadly we get a few keys atm in the ascii field, like cursor left and the function keys. That's why a check for <= 0xFF is needed.
-rw-r--r--engines/sci/event.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/event.cpp b/engines/sci/event.cpp
index b1c002413d..3f615f610f 100644
--- a/engines/sci/event.cpp
+++ b/engines/sci/event.cpp
@@ -214,7 +214,7 @@ SciEvent EventManager::getScummVMEvent() {
//((ev.kbd.flags & Common::KBD_CAPS) ? SCI_KEYMOD_CAPSLOCK : 0) |
//((ev.kbd.flags & Common::KBD_SCRL) ? SCI_KEYMOD_SCRLOCK : 0) |
- if (!(input.data & 0xFF00)) {
+ if ((input.character) && (input.character <= 0xFF)) {
// Directly accept most common keys without conversion
if ((input.character >= 0x80) && (input.character <= 0xFF)) {
// If there is no extended font, we will just clear the