aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/scummvm.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp
index 045c3fdedd..d718e7f29e 100644
--- a/scumm/scummvm.cpp
+++ b/scumm/scummvm.cpp
@@ -1534,7 +1534,12 @@ void Scumm::waitForTimer(int msec_delay) {
resourceStats();
else
_keyPressed = event.kbd.ascii; // Normal key press, pass on to the game.
- } else
+ } else if (event.kbd.flags & OSystem::KBD_ALT) {
+ // The result must be 273 for Alt-W
+ // because that's what MI2 looks for in
+ // its "instant win" cheat.
+ _keyPressed = event.kbd.keycode + 154;
+ } else
_keyPressed = event.kbd.ascii; // Normal key press, pass on to the game.
break;