Add Enter as an assignable hoykey

This commit is contained in:
Mat Sutcliffe
2022-02-18 20:41:57 +00:00
parent 44df23ade0
commit 44f4031703
6 changed files with 6 additions and 0 deletions

View File

@@ -89,6 +89,7 @@ namespace BlackInput
{ XK_Page_Up, Key_PageUp },
{ XK_Page_Down, Key_PageDown },
{ XK_Caps_Lock, Key_CapsLock },
{ XK_Return, Key_Enter },
{ XK_F1, Key_Function1 },
{ XK_F2, Key_Function2 },
{ XK_F3, Key_Function3 },

View File

@@ -94,6 +94,7 @@ namespace BlackInput
{ kHIDUsage_KeyboardPageUp, Key_PageUp },
{ kHIDUsage_KeyboardPageDown, Key_PageDown },
{ kHIDUsage_KeyboardCapsLock, Key_CapsLock },
{ kHIDUsage_KeyboardReturn, Key_Enter },
{ kHIDUsage_KeyboardF1, Key_Function1 },
{ kHIDUsage_KeyboardF2, Key_Function2 },
{ kHIDUsage_KeyboardF3, Key_Function3 },

View File

@@ -75,6 +75,7 @@ namespace BlackInput
{ VK_PRIOR, Key_PageUp },
{ VK_NEXT, Key_PageDown },
{ VK_CAPITAL, Key_CapsLock },
{ VK_RETURN, Key_Enter },
{ VK_MULTIPLY, Key_Multiply },
{ VK_SUBTRACT, Key_NumpadMinus },
{ VK_ADD, Key_NumpadPlus },

View File

@@ -82,6 +82,7 @@ namespace BlackMisc::Input
case Key_PageUp: return QStringLiteral("PgUp");
case Key_PageDown: return QStringLiteral("PgDn");
case Key_CapsLock: return QStringLiteral("CapsLock");
case Key_Enter: return QStringLiteral("Enter");
case Key_OEM1: return QStringLiteral("OEM1");
case Key_OEM2: return QStringLiteral("OEM2");
case Key_OEM3: return QStringLiteral("OEM3");

View File

@@ -56,6 +56,7 @@ namespace BlackMisc::Input
CKeyboardKey(Key_PageUp),
CKeyboardKey(Key_PageDown),
CKeyboardKey(Key_CapsLock),
CKeyboardKey(Key_Enter),
CKeyboardKey(Key_DeadGrave),
CKeyboardKey(Key_A),
CKeyboardKey(Key_B),

View File

@@ -42,6 +42,7 @@ namespace BlackMisc::Input
Key_Comma,
Key_Minus,
Key_Period,
Key_Enter,
// 0 - 9
Key_0 = '0',
Key_1,