mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-21 14:23:02 +01:00
X11: Added key mapping.
This commit is contained in:
@@ -67,7 +67,7 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
||||
"Period",
|
||||
"Slash",
|
||||
"Backslash",
|
||||
"Tilda",
|
||||
"Tilde",
|
||||
"F1",
|
||||
"F2",
|
||||
"F3",
|
||||
|
||||
@@ -101,7 +101,7 @@ namespace entry
|
||||
Period,
|
||||
Slash,
|
||||
Backslash,
|
||||
Tilda,
|
||||
Tilde,
|
||||
F1,
|
||||
F2,
|
||||
F3,
|
||||
|
||||
@@ -97,7 +97,7 @@ namespace entry
|
||||
s_translateKey[uint8_t('-')] = Key::Minus;
|
||||
|
||||
s_translateKey[uint8_t('~')] =
|
||||
s_translateKey[uint8_t('`')] = Key::Tilda;
|
||||
s_translateKey[uint8_t('`')] = Key::Tilde;
|
||||
|
||||
s_translateKey[uint8_t(':')] =
|
||||
s_translateKey[uint8_t(';')] = Key::Semicolon;
|
||||
|
||||
@@ -358,7 +358,7 @@ namespace entry
|
||||
s_translateKey[VK_OEM_PERIOD] = Key::Period;
|
||||
s_translateKey[VK_OEM_2] = Key::Slash;
|
||||
s_translateKey[VK_OEM_5] = Key::Backslash;
|
||||
s_translateKey[VK_OEM_3] = Key::Tilda;
|
||||
s_translateKey[VK_OEM_3] = Key::Tilde;
|
||||
s_translateKey[VK_F1] = Key::F1;
|
||||
s_translateKey[VK_F2] = Key::F2;
|
||||
s_translateKey[VK_F3] = Key::F3;
|
||||
|
||||
@@ -202,13 +202,24 @@ namespace entry
|
||||
initTranslateKey(XK_Down, Key::Down);
|
||||
initTranslateKey(XK_Left, Key::Left);
|
||||
initTranslateKey(XK_Right, Key::Right);
|
||||
initTranslateKey(XK_Page_Up, Key::PageUp);
|
||||
initTranslateKey(XK_Page_Down, Key::PageUp);
|
||||
initTranslateKey(XK_Insert, Key::Insert);
|
||||
initTranslateKey(XK_Delete, Key::Delete);
|
||||
initTranslateKey(XK_Home, Key::Home);
|
||||
initTranslateKey(XK_KP_End, Key::End);
|
||||
initTranslateKey(XK_Page_Up, Key::PageUp);
|
||||
initTranslateKey(XK_Page_Down, Key::PageUp);
|
||||
initTranslateKey(XK_Print, Key::Print);
|
||||
initTranslateKey(XK_equal, Key::Plus);
|
||||
initTranslateKey(XK_minus, Key::Minus);
|
||||
initTranslateKey(XK_bracketleft, Key::LeftBracket);
|
||||
initTranslateKey(XK_bracketright, Key::RightBracket);
|
||||
initTranslateKey(XK_semicolon, Key::Semicolon);
|
||||
initTranslateKey(XK_apostrophe, Key::Quote);
|
||||
initTranslateKey(XK_comma, Key::Comma);
|
||||
initTranslateKey(XK_period, Key::Period);
|
||||
initTranslateKey(XK_slash, Key::Slash);
|
||||
initTranslateKey(XK_backslash, Key::Backslash);
|
||||
initTranslateKey(XK_grave, Key::Tilde);
|
||||
initTranslateKey(XK_F1, Key::F1);
|
||||
initTranslateKey(XK_F2, Key::F2);
|
||||
initTranslateKey(XK_F3, Key::F3);
|
||||
|
||||
Reference in New Issue
Block a user