mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-03-14 00:49:53 -04:00
OSX: Added key mapping.
This commit is contained in:
parent
5d22798482
commit
e91673d53a
1 changed files with 24 additions and 2 deletions
|
@ -86,8 +86,8 @@ namespace entry
|
|||
, m_fullscreen(false)
|
||||
{
|
||||
s_translateKey[27] = Key::Esc;
|
||||
s_translateKey[13] = Key::Return;
|
||||
s_translateKey[9] = Key::Tab;
|
||||
s_translateKey[uint8_t('\n')] = Key::Return;
|
||||
s_translateKey[uint8_t('\t')] = Key::Tab;
|
||||
s_translateKey[127] = Key::Backspace;
|
||||
s_translateKey[uint8_t(' ')] = Key::Space;
|
||||
|
||||
|
@ -96,6 +96,28 @@ namespace entry
|
|||
s_translateKey[uint8_t('_')] =
|
||||
s_translateKey[uint8_t('-')] = Key::Minus;
|
||||
|
||||
s_translateKey[uint8_t('~')] =
|
||||
s_translateKey[uint8_t('`')] = Key::Tilda;
|
||||
|
||||
s_translateKey[uint8_t(':')] =
|
||||
s_translateKey[uint8_t(';')] = Key::Semicolon;
|
||||
s_translateKey[uint8_t('"')] =
|
||||
s_translateKey[uint8_t('\'')] = Key::Quote;
|
||||
|
||||
s_translateKey[uint8_t('{')] =
|
||||
s_translateKey[uint8_t('[')] = Key::LeftBracket;
|
||||
s_translateKey[uint8_t('}')] =
|
||||
s_translateKey[uint8_t(']')] = Key::RightBracket;
|
||||
|
||||
s_translateKey[uint8_t('<')] =
|
||||
s_translateKey[uint8_t(',')] = Key::Comma;
|
||||
s_translateKey[uint8_t('>')] =
|
||||
s_translateKey[uint8_t('.')] = Key::Period;
|
||||
s_translateKey[uint8_t('?')] =
|
||||
s_translateKey[uint8_t('/')] = Key::Slash;
|
||||
s_translateKey[uint8_t('|')] =
|
||||
s_translateKey[uint8_t('\\')] = Key::Backslash;
|
||||
|
||||
s_translateKey[uint8_t('0')] = Key::Key0;
|
||||
s_translateKey[uint8_t('1')] = Key::Key1;
|
||||
s_translateKey[uint8_t('2')] = Key::Key2;
|
||||
|
|
Loading…
Reference in a new issue