diff options
author | Strangerke | 2014-12-14 22:43:01 +0100 |
---|---|---|
committer | Strangerke | 2014-12-14 22:43:01 +0100 |
commit | 27ed5246b8780dc74235478058177abcc1d8e84d (patch) | |
tree | 1539c790380ec084c5de603ab0502f15a191f14c /engines/access | |
parent | 831a3f7f3591182ab0e7b8812e98c12282923909 (diff) | |
download | scummvm-rg350-27ed5246b8780dc74235478058177abcc1d8e84d.tar.gz scummvm-rg350-27ed5246b8780dc74235478058177abcc1d8e84d.tar.bz2 scummvm-rg350-27ed5246b8780dc74235478058177abcc1d8e84d.zip |
ACCESS: Use the same (weird) key mapping than in the original game
Diffstat (limited to 'engines/access')
-rw-r--r-- | engines/access/room.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/access/room.cpp b/engines/access/room.cpp index e18bd4a329..b9d13c94cd 100644 --- a/engines/access/room.cpp +++ b/engines/access/room.cpp @@ -467,9 +467,10 @@ void Room::doCommands() { mainAreaClick(); } } else if (_vm->_events->getKey(keyState)) { - if (keyState.keycode >= Common::KEYCODE_F1 && keyState.keycode <= Common::KEYCODE_F9) { + if (keyState.keycode == Common::KEYCODE_F1) handleCommand(keyState.keycode - Common::KEYCODE_F1 + 1); - } + else if (keyState.keycode >= Common::KEYCODE_F2 && keyState.keycode <= Common::KEYCODE_F10) + handleCommand(keyState.keycode - Common::KEYCODE_F1); } } |