aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray2003-08-10 06:10:07 +0000
committerJonathan Gray2003-08-10 06:10:07 +0000
commitcb1015730fd1195263a1d7adecf29d5c088c53e2 (patch)
tree758856f979e5aefeef737702ebe03868751929ca
parent4f228c71904185ed4180b4224a2c6e8e705cf489 (diff)
downloadscummvm-rg350-cb1015730fd1195263a1d7adecf29d5c088c53e2.tar.gz
scummvm-rg350-cb1015730fd1195263a1d7adecf29d5c088c53e2.tar.bz2
scummvm-rg350-cb1015730fd1195263a1d7adecf29d5c088c53e2.zip
remap F1 to F5 for comi so people don't get the broken in game menu
svn-id: r9613
-rw-r--r--scumm/scummvm.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp
index 605b0bac02..a6583d1ece 100644
--- a/scumm/scummvm.cpp
+++ b/scumm/scummvm.cpp
@@ -1423,7 +1423,11 @@ void Scumm::parseEvents() {
// because that's what MI2 looks for in
// its "instant win" cheat.
_keyPressed = event.kbd.keycode + 154;
- } else
+ // FIXME support in game screen
+ // this remaps F1 to F5 for comi
+ } else if (event.kbd.ascii == 315 && _gameId == GID_CMI)
+ _keyPressed = 319;
+ else
_keyPressed = event.kbd.ascii; // Normal key press, pass on to the game.
break;