mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-24 07:55:35 +08:00
Add more keyboard key codes assignable to hotkeys
F1-F12, CapsLock, Home, End, PgUp, PgDn, and some more numpad keys.
This commit is contained in:
@@ -73,16 +73,36 @@ namespace BlackInput
|
||||
{ XK_period, Key_Period },
|
||||
{ XK_KP_Divide, Key_Divide },
|
||||
{ XK_KP_Multiply, Key_Multiply },
|
||||
{ XK_KP_Subtract, Key_NumpadMinus },
|
||||
{ XK_KP_Add, Key_NumpadPlus },
|
||||
{ XK_KP_Delete, Key_NumpadDelete },
|
||||
{ XK_BackSpace, Key_Back },
|
||||
{ XK_Tab, Key_Tab },
|
||||
{ XK_Escape, Key_Esc },
|
||||
{ XK_space, Key_Space },
|
||||
{ XK_dead_grave, Key_DeadGrave },
|
||||
{ XK_comma, Key_Comma }
|
||||
{ XK_comma, Key_Comma },
|
||||
{ XK_Delete, Key_Delete },
|
||||
{ XK_Insert, Key_Insert },
|
||||
{ XK_Home, Key_Home },
|
||||
{ XK_End, Key_End },
|
||||
{ XK_Page_Up, Key_PageUp },
|
||||
{ XK_Page_Down, Key_PageDown },
|
||||
{ XK_Caps_Lock, Key_CapsLock },
|
||||
{ XK_F1, Key_Function1 },
|
||||
{ XK_F2, Key_Function2 },
|
||||
{ XK_F3, Key_Function3 },
|
||||
{ XK_F4, Key_Function4 },
|
||||
{ XK_F5, Key_Function5 },
|
||||
{ XK_F6, Key_Function6 },
|
||||
{ XK_F7, Key_Function7 },
|
||||
{ XK_F8, Key_Function8 },
|
||||
{ XK_F9, Key_Function9 },
|
||||
{ XK_F10, Key_Function10 },
|
||||
{ XK_F11, Key_Function11 },
|
||||
{ XK_F12, Key_Function12 },
|
||||
|
||||
/** fixme Missing ones
|
||||
Key_Insert,
|
||||
Key_Delete,
|
||||
CKeyboardKey(Key_NumpadEqual),
|
||||
CKeyboardKey(Key_OEM1),
|
||||
CKeyboardKey(Key_OEM2),
|
||||
|
||||
Reference in New Issue
Block a user