diff options
author | Filippos Karapetis | 2011-10-29 20:39:39 +0300 |
---|---|---|
committer | Filippos Karapetis | 2011-10-29 20:39:39 +0300 |
commit | 0f90b8eaad0335715d5f6aea6ede32ebbb746e25 (patch) | |
tree | 6d2bef544cbddeca19d009a2400a23d213b6cac0 /engines/sci | |
parent | 4f6996777374c8547d918074a8a8d79a961fcee0 (diff) | |
download | scummvm-rg350-0f90b8eaad0335715d5f6aea6ede32ebbb746e25.tar.gz scummvm-rg350-0f90b8eaad0335715d5f6aea6ede32ebbb746e25.tar.bz2 scummvm-rg350-0f90b8eaad0335715d5f6aea6ede32ebbb746e25.zip |
SCI: Allow alt key combinations in all SCI games
Such key combos are used for the game debugger in SCI1.1 and GK1
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/event.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/engines/sci/event.cpp b/engines/sci/event.cpp index c14cfada07..378e88b7df 100644 --- a/engines/sci/event.cpp +++ b/engines/sci/event.cpp @@ -253,14 +253,11 @@ SciEvent EventManager::getScummVMEvent() { if ((modifiers & Common::KBD_ALT) && input.character > 0 && input.character < 27) input.character += 96; // 0x01 -> 'a' - if (getSciVersion() <= SCI_VERSION_1_MIDDLE) { - // TODO: find out if altify is also not needed for sci1late+, couldnt find any game that uses those keys - // Scancodify if appropriate - if (modifiers & Common::KBD_ALT) - input.character = altify(input.character); - else if ((modifiers & Common::KBD_CTRL) && input.character > 0 && input.character < 27) - input.character += 96; // 0x01 -> 'a' - } + // Scancodify if appropriate + if (modifiers & Common::KBD_ALT) + input.character = altify(input.character); + else if ((modifiers & Common::KBD_CTRL) && input.character > 0 && input.character < 27) + input.character += 96; // 0x01 -> 'a' // If no actual key was pressed (e.g. if only a modifier key was pressed), // ignore the event |