WINTERMUTE: Put in the VKEYs necessary to complete the white chamber.

This commit is contained in:
Einar Johan Trøan Sømåen 2012-07-17 17:19:58 +02:00
parent 9bc7fa7376
commit 6763834381

View File

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