GLFW: Added missing key remappings.
This commit is contained in:
parent
33a83de1e1
commit
9e8131e377
@ -312,80 +312,84 @@ namespace entry
|
||||
: m_scrollPos(0.0)
|
||||
{
|
||||
bx::memSet(s_translateKey, 0, sizeof(s_translateKey));
|
||||
s_translateKey[GLFW_KEY_ESCAPE] = Key::Esc;
|
||||
s_translateKey[GLFW_KEY_ENTER] = Key::Return;
|
||||
s_translateKey[GLFW_KEY_TAB] = Key::Tab;
|
||||
s_translateKey[GLFW_KEY_BACKSPACE] = Key::Backspace;
|
||||
s_translateKey[GLFW_KEY_SPACE] = Key::Space;
|
||||
s_translateKey[GLFW_KEY_UP] = Key::Up;
|
||||
s_translateKey[GLFW_KEY_DOWN] = Key::Down;
|
||||
s_translateKey[GLFW_KEY_LEFT] = Key::Left;
|
||||
s_translateKey[GLFW_KEY_RIGHT] = Key::Right;
|
||||
s_translateKey[GLFW_KEY_PAGE_UP] = Key::PageUp;
|
||||
s_translateKey[GLFW_KEY_PAGE_DOWN] = Key::PageDown;
|
||||
s_translateKey[GLFW_KEY_HOME] = Key::Home;
|
||||
s_translateKey[GLFW_KEY_END] = Key::End;
|
||||
s_translateKey[GLFW_KEY_ESCAPE] = Key::Esc;
|
||||
s_translateKey[GLFW_KEY_ENTER] = Key::Return;
|
||||
s_translateKey[GLFW_KEY_TAB] = Key::Tab;
|
||||
s_translateKey[GLFW_KEY_BACKSPACE] = Key::Backspace;
|
||||
s_translateKey[GLFW_KEY_SPACE] = Key::Space;
|
||||
s_translateKey[GLFW_KEY_UP] = Key::Up;
|
||||
s_translateKey[GLFW_KEY_DOWN] = Key::Down;
|
||||
s_translateKey[GLFW_KEY_LEFT] = Key::Left;
|
||||
s_translateKey[GLFW_KEY_RIGHT] = Key::Right;
|
||||
s_translateKey[GLFW_KEY_PAGE_UP] = Key::PageUp;
|
||||
s_translateKey[GLFW_KEY_PAGE_DOWN] = Key::PageDown;
|
||||
s_translateKey[GLFW_KEY_HOME] = Key::Home;
|
||||
s_translateKey[GLFW_KEY_END] = Key::End;
|
||||
s_translateKey[GLFW_KEY_PRINT_SCREEN] = Key::Print;
|
||||
s_translateKey[GLFW_KEY_KP_ADD] = Key::Plus;
|
||||
s_translateKey[GLFW_KEY_KP_ADD] = Key::Plus;
|
||||
s_translateKey[GLFW_KEY_KP_SUBTRACT] = Key::Minus;
|
||||
s_translateKey[GLFW_KEY_F1] = Key::F1;
|
||||
s_translateKey[GLFW_KEY_F2] = Key::F2;
|
||||
s_translateKey[GLFW_KEY_F3] = Key::F3;
|
||||
s_translateKey[GLFW_KEY_F4] = Key::F4;
|
||||
s_translateKey[GLFW_KEY_F5] = Key::F5;
|
||||
s_translateKey[GLFW_KEY_F6] = Key::F6;
|
||||
s_translateKey[GLFW_KEY_F7] = Key::F7;
|
||||
s_translateKey[GLFW_KEY_F8] = Key::F8;
|
||||
s_translateKey[GLFW_KEY_F9] = Key::F9;
|
||||
s_translateKey[GLFW_KEY_F10] = Key::F10;
|
||||
s_translateKey[GLFW_KEY_F11] = Key::F11;
|
||||
s_translateKey[GLFW_KEY_F12] = Key::F12;
|
||||
s_translateKey[GLFW_KEY_KP_0] = Key::NumPad0;
|
||||
s_translateKey[GLFW_KEY_KP_1] = Key::NumPad1;
|
||||
s_translateKey[GLFW_KEY_KP_2] = Key::NumPad2;
|
||||
s_translateKey[GLFW_KEY_KP_3] = Key::NumPad3;
|
||||
s_translateKey[GLFW_KEY_KP_4] = Key::NumPad4;
|
||||
s_translateKey[GLFW_KEY_KP_5] = Key::NumPad5;
|
||||
s_translateKey[GLFW_KEY_KP_6] = Key::NumPad6;
|
||||
s_translateKey[GLFW_KEY_KP_7] = Key::NumPad7;
|
||||
s_translateKey[GLFW_KEY_KP_8] = Key::NumPad8;
|
||||
s_translateKey[GLFW_KEY_KP_9] = Key::NumPad9;
|
||||
s_translateKey[GLFW_KEY_0] = Key::Key0;
|
||||
s_translateKey[GLFW_KEY_1] = Key::Key1;
|
||||
s_translateKey[GLFW_KEY_2] = Key::Key2;
|
||||
s_translateKey[GLFW_KEY_3] = Key::Key3;
|
||||
s_translateKey[GLFW_KEY_4] = Key::Key4;
|
||||
s_translateKey[GLFW_KEY_5] = Key::Key5;
|
||||
s_translateKey[GLFW_KEY_6] = Key::Key6;
|
||||
s_translateKey[GLFW_KEY_7] = Key::Key7;
|
||||
s_translateKey[GLFW_KEY_8] = Key::Key8;
|
||||
s_translateKey[GLFW_KEY_9] = Key::Key9;
|
||||
s_translateKey[GLFW_KEY_A] = Key::KeyA;
|
||||
s_translateKey[GLFW_KEY_B] = Key::KeyB;
|
||||
s_translateKey[GLFW_KEY_C] = Key::KeyC;
|
||||
s_translateKey[GLFW_KEY_D] = Key::KeyD;
|
||||
s_translateKey[GLFW_KEY_E] = Key::KeyE;
|
||||
s_translateKey[GLFW_KEY_F] = Key::KeyF;
|
||||
s_translateKey[GLFW_KEY_G] = Key::KeyG;
|
||||
s_translateKey[GLFW_KEY_H] = Key::KeyH;
|
||||
s_translateKey[GLFW_KEY_I] = Key::KeyI;
|
||||
s_translateKey[GLFW_KEY_J] = Key::KeyJ;
|
||||
s_translateKey[GLFW_KEY_K] = Key::KeyK;
|
||||
s_translateKey[GLFW_KEY_L] = Key::KeyL;
|
||||
s_translateKey[GLFW_KEY_M] = Key::KeyM;
|
||||
s_translateKey[GLFW_KEY_N] = Key::KeyN;
|
||||
s_translateKey[GLFW_KEY_O] = Key::KeyO;
|
||||
s_translateKey[GLFW_KEY_P] = Key::KeyP;
|
||||
s_translateKey[GLFW_KEY_Q] = Key::KeyQ;
|
||||
s_translateKey[GLFW_KEY_R] = Key::KeyR;
|
||||
s_translateKey[GLFW_KEY_S] = Key::KeyS;
|
||||
s_translateKey[GLFW_KEY_T] = Key::KeyT;
|
||||
s_translateKey[GLFW_KEY_U] = Key::KeyU;
|
||||
s_translateKey[GLFW_KEY_V] = Key::KeyV;
|
||||
s_translateKey[GLFW_KEY_W] = Key::KeyW;
|
||||
s_translateKey[GLFW_KEY_X] = Key::KeyX;
|
||||
s_translateKey[GLFW_KEY_Y] = Key::KeyY;
|
||||
s_translateKey[GLFW_KEY_Z] = Key::KeyZ;
|
||||
s_translateKey[GLFW_KEY_MINUS] = Key::Minus;
|
||||
s_translateKey[GLFW_KEY_COMMA] = Key::Comma;
|
||||
s_translateKey[GLFW_KEY_PERIOD] = Key::Period;
|
||||
s_translateKey[GLFW_KEY_SLASH] = Key::Slash;
|
||||
s_translateKey[GLFW_KEY_F1] = Key::F1;
|
||||
s_translateKey[GLFW_KEY_F2] = Key::F2;
|
||||
s_translateKey[GLFW_KEY_F3] = Key::F3;
|
||||
s_translateKey[GLFW_KEY_F4] = Key::F4;
|
||||
s_translateKey[GLFW_KEY_F5] = Key::F5;
|
||||
s_translateKey[GLFW_KEY_F6] = Key::F6;
|
||||
s_translateKey[GLFW_KEY_F7] = Key::F7;
|
||||
s_translateKey[GLFW_KEY_F8] = Key::F8;
|
||||
s_translateKey[GLFW_KEY_F9] = Key::F9;
|
||||
s_translateKey[GLFW_KEY_F10] = Key::F10;
|
||||
s_translateKey[GLFW_KEY_F11] = Key::F11;
|
||||
s_translateKey[GLFW_KEY_F12] = Key::F12;
|
||||
s_translateKey[GLFW_KEY_KP_0] = Key::NumPad0;
|
||||
s_translateKey[GLFW_KEY_KP_1] = Key::NumPad1;
|
||||
s_translateKey[GLFW_KEY_KP_2] = Key::NumPad2;
|
||||
s_translateKey[GLFW_KEY_KP_3] = Key::NumPad3;
|
||||
s_translateKey[GLFW_KEY_KP_4] = Key::NumPad4;
|
||||
s_translateKey[GLFW_KEY_KP_5] = Key::NumPad5;
|
||||
s_translateKey[GLFW_KEY_KP_6] = Key::NumPad6;
|
||||
s_translateKey[GLFW_KEY_KP_7] = Key::NumPad7;
|
||||
s_translateKey[GLFW_KEY_KP_8] = Key::NumPad8;
|
||||
s_translateKey[GLFW_KEY_KP_9] = Key::NumPad9;
|
||||
s_translateKey[GLFW_KEY_0] = Key::Key0;
|
||||
s_translateKey[GLFW_KEY_1] = Key::Key1;
|
||||
s_translateKey[GLFW_KEY_2] = Key::Key2;
|
||||
s_translateKey[GLFW_KEY_3] = Key::Key3;
|
||||
s_translateKey[GLFW_KEY_4] = Key::Key4;
|
||||
s_translateKey[GLFW_KEY_5] = Key::Key5;
|
||||
s_translateKey[GLFW_KEY_6] = Key::Key6;
|
||||
s_translateKey[GLFW_KEY_7] = Key::Key7;
|
||||
s_translateKey[GLFW_KEY_8] = Key::Key8;
|
||||
s_translateKey[GLFW_KEY_9] = Key::Key9;
|
||||
s_translateKey[GLFW_KEY_A] = Key::KeyA;
|
||||
s_translateKey[GLFW_KEY_B] = Key::KeyB;
|
||||
s_translateKey[GLFW_KEY_C] = Key::KeyC;
|
||||
s_translateKey[GLFW_KEY_D] = Key::KeyD;
|
||||
s_translateKey[GLFW_KEY_E] = Key::KeyE;
|
||||
s_translateKey[GLFW_KEY_F] = Key::KeyF;
|
||||
s_translateKey[GLFW_KEY_G] = Key::KeyG;
|
||||
s_translateKey[GLFW_KEY_H] = Key::KeyH;
|
||||
s_translateKey[GLFW_KEY_I] = Key::KeyI;
|
||||
s_translateKey[GLFW_KEY_J] = Key::KeyJ;
|
||||
s_translateKey[GLFW_KEY_K] = Key::KeyK;
|
||||
s_translateKey[GLFW_KEY_L] = Key::KeyL;
|
||||
s_translateKey[GLFW_KEY_M] = Key::KeyM;
|
||||
s_translateKey[GLFW_KEY_N] = Key::KeyN;
|
||||
s_translateKey[GLFW_KEY_O] = Key::KeyO;
|
||||
s_translateKey[GLFW_KEY_P] = Key::KeyP;
|
||||
s_translateKey[GLFW_KEY_Q] = Key::KeyQ;
|
||||
s_translateKey[GLFW_KEY_R] = Key::KeyR;
|
||||
s_translateKey[GLFW_KEY_S] = Key::KeyS;
|
||||
s_translateKey[GLFW_KEY_T] = Key::KeyT;
|
||||
s_translateKey[GLFW_KEY_U] = Key::KeyU;
|
||||
s_translateKey[GLFW_KEY_V] = Key::KeyV;
|
||||
s_translateKey[GLFW_KEY_W] = Key::KeyW;
|
||||
s_translateKey[GLFW_KEY_X] = Key::KeyX;
|
||||
s_translateKey[GLFW_KEY_Y] = Key::KeyY;
|
||||
s_translateKey[GLFW_KEY_Z] = Key::KeyZ;
|
||||
}
|
||||
|
||||
int run(int _argc, char** _argv)
|
||||
|
Loading…
Reference in New Issue
Block a user