aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2014-12-07 17:53:05 -0500
committerPaul Gilbert2014-12-12 23:03:16 -0500
commit86bee5b48ecbadf9c8f1b4ae2f48c8bcbdf3fce9 (patch)
treec729ab0c74561e5165ee90974d682b88a50bce71
parent8e90ef2ec7fd1b3bf7d020988fff1629605b0481 (diff)
downloadscummvm-rg350-86bee5b48ecbadf9c8f1b4ae2f48c8bcbdf3fce9.tar.gz
scummvm-rg350-86bee5b48ecbadf9c8f1b4ae2f48c8bcbdf3fce9.tar.bz2
scummvm-rg350-86bee5b48ecbadf9c8f1b4ae2f48c8bcbdf3fce9.zip
ACCESS: Fix function key mapping for game icons
-rw-r--r--engines/access/room.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/access/room.cpp b/engines/access/room.cpp
index b3c3317307..a781dab24a 100644
--- a/engines/access/room.cpp
+++ b/engines/access/room.cpp
@@ -468,8 +468,8 @@ void Room::doCommands() {
mainAreaClick();
}
} else if (_vm->_events->getKey(keyState)) {
- if (keyState.ascii >= ';' && keyState.ascii <= 'D') {
- handleCommand((int)keyState.ascii - ';');
+ if (keyState.keycode >= Common::KEYCODE_F1 && keyState.keycode <= Common::KEYCODE_F9) {
+ handleCommand(keyState.keycode - Common::KEYCODE_F1 + 1);
}
}
}