From 27ed5246b8780dc74235478058177abcc1d8e84d Mon Sep 17 00:00:00 2001 From: Strangerke Date: Sun, 14 Dec 2014 22:43:01 +0100 Subject: ACCESS: Use the same (weird) key mapping than in the original game --- engines/access/room.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engines/access') 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); } } -- cgit v1.2.3