mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-31 14:43:42 +00:00
WINTERMUTE: Put in the VKEYs necessary to complete the white chamber.
This commit is contained in:
parent
9bc7fa7376
commit
6763834381
@ -266,10 +266,39 @@ uint32 CBKeyboardState::keyCodeToVKey(Common::Event *event) {
|
||||
}
|
||||
}
|
||||
|
||||
enum VKeyCodes {
|
||||
VK_SPACE = 32,
|
||||
VK_LEFT = 37,
|
||||
VK_UP = 38,
|
||||
VK_RIGHT = 39,
|
||||
VK_DOWN = 40
|
||||
};
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
Common::KeyCode CBKeyboardState::vKeyToKeyCode(uint32 vkey) {
|
||||
// todo
|
||||
return (Common::KeyCode)vkey;
|
||||
switch (vkey) {
|
||||
case VK_SPACE:
|
||||
return Common::KEYCODE_SPACE;
|
||||
break;
|
||||
case VK_LEFT:
|
||||
return Common::KEYCODE_LEFT;
|
||||
break;
|
||||
case VK_RIGHT:
|
||||
return Common::KEYCODE_RIGHT;
|
||||
break;
|
||||
case VK_UP:
|
||||
return Common::KEYCODE_UP;
|
||||
break;
|
||||
case VK_DOWN:
|
||||
return Common::KEYCODE_DOWN;
|
||||
break;
|
||||
default:
|
||||
warning("Unknown VKEY: %d", vkey);
|
||||
return (Common::KeyCode)vkey;
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
} // end of namespace WinterMute
|
||||
|
Loading…
Reference in New Issue
Block a user