Skip to content

Commit

Permalink
SCI: Allow alt key combinations in all SCI games
Browse files Browse the repository at this point in the history
Such key combos are used for the game debugger in SCI1.1 and GK1
  • Loading branch information
bluegr committed Oct 29, 2011
1 parent 4f69967 commit 0f90b8e
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions engines/sci/event.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 0f90b8e

Please sign in to comment.