diff options
author | Filippos Karapetis | 2013-11-07 13:46:54 +0200 |
---|---|---|
committer | Filippos Karapetis | 2013-11-07 13:47:38 +0200 |
commit | eba0c0ff625a8ca42402496713ca29d70d94e5f1 (patch) | |
tree | f6b4d0bdff1264314ef1c884bb46440406fa23de /engines/wintermute | |
parent | fa063e56475f3f3c0a1350ece2b7e488eefe8fe3 (diff) | |
download | scummvm-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.cpp | 14 |
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; |