Skip to content

Commit

Permalink
ACCESS: Use the same (weird) key mapping than in the original game
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Dec 14, 2014
1 parent 831a3f7 commit 27ed524
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions engines/access/room.cpp
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 27ed524

Please sign in to comment.