diff options
author | Max Horn | 2007-12-20 14:28:40 +0000 |
---|---|---|
committer | Max Horn | 2007-12-20 14:28:40 +0000 |
commit | d7e358acfa3f387b17e27883af0a31ca0451b6de (patch) | |
tree | d4637a878c306b6655e21eaefa15cd9682623c40 /engines/agi | |
parent | a47446600afaca54521527f1bdc1ac034fd7cfbd (diff) | |
download | scummvm-rg350-d7e358acfa3f387b17e27883af0a31ca0451b6de.tar.gz scummvm-rg350-d7e358acfa3f387b17e27883af0a31ca0451b6de.tar.bz2 scummvm-rg350-d7e358acfa3f387b17e27883af0a31ca0451b6de.zip |
More cleanup
svn-id: r29917
Diffstat (limited to 'engines/agi')
-rw-r--r-- | engines/agi/agi.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp index 33a1f669c3..0a1589703d 100644 --- a/engines/agi/agi.cpp +++ b/engines/agi/agi.cpp @@ -219,11 +219,9 @@ void AgiEngine::processEvents() { key = KEY_BACKSPACE; break; default: - if (key < 256 && !isalpha(key)) { + if (key < 256 && !isalpha(key)) key = event.kbd.ascii; - break; - } - if (event.kbd.flags & Common::KBD_CTRL) + else if (event.kbd.flags & Common::KBD_CTRL) key = (key & ~0x20) - 0x40; else if (event.kbd.flags & Common::KBD_ALT) key = scancodeTable[(key & ~0x20) - 0x41] << 8; |