mirror of
https://github.com/libretro/scummvm.git
synced 2025-05-13 09:36:21 +00:00
WINTERMUTE: Add the keycode for the ESC key
This is used by Looky
This commit is contained in:
parent
fa063e5647
commit
eba0c0ff62
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user