aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2016-02-01 10:35:13 +0100
committerEugene Sandulenko2016-02-01 10:35:13 +0100
commit68ff933206e091f0cd9712a903228cb9d0801db6 (patch)
tree81bfe44dce3610538dde25f70f3d9eda553e9265 /engines
parent7b521edac778b0a0369493054b4810da87d22435 (diff)
parent94cd15bb3e07950bd98f8133e552707a33729e47 (diff)
downloadscummvm-rg350-68ff933206e091f0cd9712a903228cb9d0801db6.tar.gz
scummvm-rg350-68ff933206e091f0cd9712a903228cb9d0801db6.tar.bz2
scummvm-rg350-68ff933206e091f0cd9712a903228cb9d0801db6.zip
Merge pull request #657 from lordhoto/scumm-alt-x
ALL: Handle Alt-x internally in SCUMM.
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/input.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/scumm/input.cpp b/engines/scumm/input.cpp
index 3ce053f6bc..1234eda3cc 100644
--- a/engines/scumm/input.cpp
+++ b/engines/scumm/input.cpp
@@ -130,6 +130,14 @@ void ScummEngine::parseEvent(Common::Event event) {
_debugger->attach();
} else if (event.kbd.hasFlags(Common::KBD_CTRL) && event.kbd.keycode == Common::KEYCODE_s) {
_res->resourceStats();
+ } else if (event.kbd.hasFlags(Common::KBD_ALT) && event.kbd.keycode == Common::KEYCODE_x) {
+ // TODO: Some SCUMM games quit when Alt-x is pressed. However, not
+ // all of them seem to exhibit this behavior. LordHoto found that
+ // the Loom manual does not mention this hotkey. On the other hand
+ // the Sam&Max manual mentions that Alt-x does so on "most"
+ // platforms. We should really check which games exhibit this
+ // behavior and only use it for them.
+ quitGame();
} else {
// Normal key press, pass on to the game.
_keyPressed = event.kbd;