|
|
@@ -20,85 +20,85 @@ struct KeyboardButtonInfo
|
|
|
|
|
|
static KeyboardButtonInfo s_keyboard_button[] =
|
|
|
{
|
|
|
- { "tab", KeyboardButton::TAB },
|
|
|
- { "enter", KeyboardButton::ENTER },
|
|
|
- { "escape", KeyboardButton::ESCAPE },
|
|
|
- { "space", KeyboardButton::SPACE },
|
|
|
- { "backspace", KeyboardButton::BACKSPACE },
|
|
|
- { "kp_0", KeyboardButton::KP_0 },
|
|
|
- { "kp_1", KeyboardButton::KP_1 },
|
|
|
- { "kp_2", KeyboardButton::KP_2 },
|
|
|
- { "kp_3", KeyboardButton::KP_3 },
|
|
|
- { "kp_4", KeyboardButton::KP_4 },
|
|
|
- { "kp_5", KeyboardButton::KP_5 },
|
|
|
- { "kp_6", KeyboardButton::KP_6 },
|
|
|
- { "kp_7", KeyboardButton::KP_7 },
|
|
|
- { "kp_8", KeyboardButton::KP_8 },
|
|
|
- { "kp_9", KeyboardButton::KP_9 },
|
|
|
- { "f1", KeyboardButton::F1 },
|
|
|
- { "f2", KeyboardButton::F2 },
|
|
|
- { "f3", KeyboardButton::F3 },
|
|
|
- { "f4", KeyboardButton::F4 },
|
|
|
- { "f5", KeyboardButton::F5 },
|
|
|
- { "f6", KeyboardButton::F6 },
|
|
|
- { "f7", KeyboardButton::F7 },
|
|
|
- { "f8", KeyboardButton::F8 },
|
|
|
- { "f9", KeyboardButton::F9 },
|
|
|
- { "f10", KeyboardButton::F10 },
|
|
|
- { "f11", KeyboardButton::F11 },
|
|
|
- { "f12", KeyboardButton::F12 },
|
|
|
- { "home", KeyboardButton::HOME },
|
|
|
- { "left", KeyboardButton::LEFT },
|
|
|
- { "up", KeyboardButton::UP },
|
|
|
- { "right", KeyboardButton::RIGHT },
|
|
|
- { "down", KeyboardButton::DOWN },
|
|
|
- { "page_up", KeyboardButton::PAGE_UP },
|
|
|
- { "page_down", KeyboardButton::PAGE_DOWN },
|
|
|
- { "lcontrol", KeyboardButton::LCONTROL },
|
|
|
- { "rcontrol", KeyboardButton::RCONTROL },
|
|
|
- { "lshift", KeyboardButton::LSHIFT },
|
|
|
- { "rshift", KeyboardButton::RSHIFT },
|
|
|
- { "caps_lock", KeyboardButton::CAPS_LOCK },
|
|
|
- { "lalt", KeyboardButton::LALT },
|
|
|
- { "ralt", KeyboardButton::RALT },
|
|
|
- { "lsuper", KeyboardButton::LSUPER },
|
|
|
- { "rsuper", KeyboardButton::RSUPER },
|
|
|
- { "num_0", KeyboardButton::NUM_0 },
|
|
|
- { "num_1", KeyboardButton::NUM_1 },
|
|
|
- { "num_2", KeyboardButton::NUM_2 },
|
|
|
- { "num_3", KeyboardButton::NUM_3 },
|
|
|
- { "num_4", KeyboardButton::NUM_4 },
|
|
|
- { "num_5", KeyboardButton::NUM_5 },
|
|
|
- { "num_6", KeyboardButton::NUM_6 },
|
|
|
- { "num_7", KeyboardButton::NUM_7 },
|
|
|
- { "num_8", KeyboardButton::NUM_8 },
|
|
|
- { "num_9", KeyboardButton::NUM_9 },
|
|
|
- { "a", KeyboardButton::A },
|
|
|
- { "b", KeyboardButton::B },
|
|
|
- { "c", KeyboardButton::C },
|
|
|
- { "d", KeyboardButton::D },
|
|
|
- { "e", KeyboardButton::E },
|
|
|
- { "f", KeyboardButton::F },
|
|
|
- { "g", KeyboardButton::G },
|
|
|
- { "h", KeyboardButton::H },
|
|
|
- { "i", KeyboardButton::I },
|
|
|
- { "j", KeyboardButton::J },
|
|
|
- { "k", KeyboardButton::K },
|
|
|
- { "l", KeyboardButton::L },
|
|
|
- { "m", KeyboardButton::M },
|
|
|
- { "n", KeyboardButton::N },
|
|
|
- { "o", KeyboardButton::O },
|
|
|
- { "p", KeyboardButton::P },
|
|
|
- { "q", KeyboardButton::Q },
|
|
|
- { "r", KeyboardButton::R },
|
|
|
- { "s", KeyboardButton::S },
|
|
|
- { "t", KeyboardButton::T },
|
|
|
- { "u", KeyboardButton::U },
|
|
|
- { "v", KeyboardButton::V },
|
|
|
- { "w", KeyboardButton::W },
|
|
|
- { "x", KeyboardButton::X },
|
|
|
- { "y", KeyboardButton::Y },
|
|
|
- { "z", KeyboardButton::Z }
|
|
|
+ { "tab", KeyboardButton::TAB },
|
|
|
+ { "enter", KeyboardButton::ENTER },
|
|
|
+ { "escape", KeyboardButton::ESCAPE },
|
|
|
+ { "space", KeyboardButton::SPACE },
|
|
|
+ { "backspace", KeyboardButton::BACKSPACE },
|
|
|
+ { "numpad_0", KeyboardButton::NUMPAD_0 },
|
|
|
+ { "numpad_1", KeyboardButton::NUMPAD_1 },
|
|
|
+ { "numpad_2", KeyboardButton::NUMPAD_2 },
|
|
|
+ { "numpad_3", KeyboardButton::NUMPAD_3 },
|
|
|
+ { "numpad_4", KeyboardButton::NUMPAD_4 },
|
|
|
+ { "numpad_5", KeyboardButton::NUMPAD_5 },
|
|
|
+ { "numpad_6", KeyboardButton::NUMPAD_6 },
|
|
|
+ { "numpad_7", KeyboardButton::NUMPAD_7 },
|
|
|
+ { "numpad_8", KeyboardButton::NUMPAD_8 },
|
|
|
+ { "numpad_9", KeyboardButton::NUMPAD_9 },
|
|
|
+ { "f1", KeyboardButton::F1 },
|
|
|
+ { "f2", KeyboardButton::F2 },
|
|
|
+ { "f3", KeyboardButton::F3 },
|
|
|
+ { "f4", KeyboardButton::F4 },
|
|
|
+ { "f5", KeyboardButton::F5 },
|
|
|
+ { "f6", KeyboardButton::F6 },
|
|
|
+ { "f7", KeyboardButton::F7 },
|
|
|
+ { "f8", KeyboardButton::F8 },
|
|
|
+ { "f9", KeyboardButton::F9 },
|
|
|
+ { "f10", KeyboardButton::F10 },
|
|
|
+ { "f11", KeyboardButton::F11 },
|
|
|
+ { "f12", KeyboardButton::F12 },
|
|
|
+ { "home", KeyboardButton::HOME },
|
|
|
+ { "left", KeyboardButton::LEFT },
|
|
|
+ { "up", KeyboardButton::UP },
|
|
|
+ { "right", KeyboardButton::RIGHT },
|
|
|
+ { "down", KeyboardButton::DOWN },
|
|
|
+ { "page_up", KeyboardButton::PAGE_UP },
|
|
|
+ { "page_down", KeyboardButton::PAGE_DOWN },
|
|
|
+ { "left_ctrl", KeyboardButton::LEFT_CTRL },
|
|
|
+ { "right_ctrl", KeyboardButton::RIGHT_CTRL },
|
|
|
+ { "left_shift", KeyboardButton::LEFT_SHIFT },
|
|
|
+ { "right_shift", KeyboardButton::RIGHT_SHIFT },
|
|
|
+ { "caps_lock", KeyboardButton::CAPS_LOCK },
|
|
|
+ { "left_alt", KeyboardButton::LEFT_ALT },
|
|
|
+ { "right_alt", KeyboardButton::RIGHT_ALT },
|
|
|
+ { "left_super", KeyboardButton::LEFT_SUPER },
|
|
|
+ { "right_super", KeyboardButton::RIGHT_SUPER },
|
|
|
+ { "0", KeyboardButton::NUMBER_0 },
|
|
|
+ { "1", KeyboardButton::NUMBER_1 },
|
|
|
+ { "2", KeyboardButton::NUMBER_2 },
|
|
|
+ { "3", KeyboardButton::NUMBER_3 },
|
|
|
+ { "4", KeyboardButton::NUMBER_4 },
|
|
|
+ { "5", KeyboardButton::NUMBER_5 },
|
|
|
+ { "6", KeyboardButton::NUMBER_6 },
|
|
|
+ { "7", KeyboardButton::NUMBER_7 },
|
|
|
+ { "8", KeyboardButton::NUMBER_8 },
|
|
|
+ { "9", KeyboardButton::NUMBER_9 },
|
|
|
+ { "a", KeyboardButton::A },
|
|
|
+ { "b", KeyboardButton::B },
|
|
|
+ { "c", KeyboardButton::C },
|
|
|
+ { "d", KeyboardButton::D },
|
|
|
+ { "e", KeyboardButton::E },
|
|
|
+ { "f", KeyboardButton::F },
|
|
|
+ { "g", KeyboardButton::G },
|
|
|
+ { "h", KeyboardButton::H },
|
|
|
+ { "i", KeyboardButton::I },
|
|
|
+ { "j", KeyboardButton::J },
|
|
|
+ { "k", KeyboardButton::K },
|
|
|
+ { "l", KeyboardButton::L },
|
|
|
+ { "m", KeyboardButton::M },
|
|
|
+ { "n", KeyboardButton::N },
|
|
|
+ { "o", KeyboardButton::O },
|
|
|
+ { "p", KeyboardButton::P },
|
|
|
+ { "q", KeyboardButton::Q },
|
|
|
+ { "r", KeyboardButton::R },
|
|
|
+ { "s", KeyboardButton::S },
|
|
|
+ { "t", KeyboardButton::T },
|
|
|
+ { "u", KeyboardButton::U },
|
|
|
+ { "v", KeyboardButton::V },
|
|
|
+ { "w", KeyboardButton::W },
|
|
|
+ { "x", KeyboardButton::X },
|
|
|
+ { "y", KeyboardButton::Y },
|
|
|
+ { "z", KeyboardButton::Z }
|
|
|
};
|
|
|
|
|
|
struct MouseButtonInfo
|