aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute
diff options
context:
space:
mode:
authorFilippos Karapetis2013-11-07 13:46:54 +0200
committerFilippos Karapetis2013-11-07 13:47:38 +0200
commiteba0c0ff625a8ca42402496713ca29d70d94e5f1 (patch)
treef6b4d0bdff1264314ef1c884bb46440406fa23de /engines/wintermute
parentfa063e56475f3f3c0a1350ece2b7e488eefe8fe3 (diff)
downloadscummvm-rg350-eba0c0ff625a8ca42402496713ca29d70d94e5f1.tar.gz
scummvm-rg350-eba0c0ff625a8ca42402496713ca29d70d94e5f1.tar.bz2
scummvm-rg350-eba0c0ff625a8ca42402496713ca29d70d94e5f1.zip
WINTERMUTE: Add the keycode for the ESC key
This is used by Looky
Diffstat (limited to 'engines/wintermute')
-rw-r--r--engines/wintermute/base/base_keyboard_state.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/engines/wintermute/base/base_keyboard_state.cpp b/engines/wintermute/base/base_keyboard_state.cpp
index 785af64fad..77469e07a5 100644
--- a/engines/wintermute/base/base_keyboard_state.cpp
+++ b/engines/wintermute/base/base_keyboard_state.cpp
@@ -276,17 +276,21 @@ uint32 BaseKeyboardState::keyCodeToVKey(Common::Event *event) {
}
enum VKeyCodes {
- kVkSpace = 32,
- kVkLeft = 37,
- kVkUp = 38,
- kVkRight = 39,
- kVkDown = 40
+ kVkEscape = 27,
+ kVkSpace = 32,
+ kVkLeft = 37,
+ kVkUp = 38,
+ kVkRight = 39,
+ kVkDown = 40
};
//////////////////////////////////////////////////////////////////////////
Common::KeyCode BaseKeyboardState::vKeyToKeyCode(uint32 vkey) {
// todo
switch (vkey) {
+ case kVkEscape:
+ return Common::KEYCODE_ESCAPE;
+ break;
case kVkSpace:
return Common::KEYCODE_SPACE;
break;