WINTERMUTE: Add the keycode for the ESC key

This is used by Looky
This commit is contained in:
Filippos Karapetis 2013-11-07 13:46:54 +02:00
parent fa063e5647
commit eba0c0ff62

View File

@ -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;