aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Montoir2007-01-08 12:32:26 +0000
committerGregory Montoir2007-01-08 12:32:26 +0000
commit8863ad6279686af60765b6cef904344384258a29 (patch)
tree9342c8ac72e31c102ba5f0ea15972a01c9abd379
parent4f9f4641b6203dea834546f289ce8e2c94d08eba (diff)
downloadscummvm-rg350-8863ad6279686af60765b6cef904344384258a29.tar.gz
scummvm-rg350-8863ad6279686af60765b6cef904344384258a29.tar.bz2
scummvm-rg350-8863ad6279686af60765b6cef904344384258a29.zip
added arrow keys mapping to match behavior of original interpreter (dialogue choices can still be selected using the mouse wheel)
svn-id: r25053
-rw-r--r--engines/scumm/input.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/scumm/input.cpp b/engines/scumm/input.cpp
index ae7b5682df..807d1767c0 100644
--- a/engines/scumm/input.cpp
+++ b/engines/scumm/input.cpp
@@ -102,6 +102,12 @@ void ScummEngine::parseEvents() {
_keyPressed = event.kbd.ascii; // Normal key press, pass on to the game.
}
+ if (_game.id == GID_MONKEY && _game.platform == Common::kPlatformSegaCD) {
+ if (event.kbd.ascii >= 273 && event.kbd.ascii <= 276) {
+ _keyPressed = event.kbd.ascii - 273 + 54;
+ }
+ }
+
if (_game.heversion >= 80) {
// Keyboard is controlled via variable
int _keyState = 0;