mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
added pause and scrlk keys
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
# https://github.com/NicoHood/HID/blob/master/src/HID-APIs/ImprovedKeylayouts.h
|
||||
# https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code
|
||||
1 KEY_A KeyA
|
||||
2 KEY_B KeyB
|
||||
3 KEY_C KeyC
|
||||
@@ -83,9 +84,9 @@
|
||||
82 KEY_RIGHT_SHIFT ShiftRight
|
||||
83 KEY_RIGHT_ALT AltRight
|
||||
84 KEY_RIGHT_GUI MetaRight
|
||||
# KEY_PAUSE
|
||||
85 KEY_PAUSE Pause
|
||||
86 KEY_SCROLL_LOCK ScrollLock
|
||||
# KEY_NON_US_NUM
|
||||
# KEY_SCROLL_LOCK
|
||||
# KEY_NUM_LOCK
|
||||
# KEYPAD_DIVIDE
|
||||
# KEYPAD_MULTIPLY
|
||||
|
||||
@@ -64,6 +64,7 @@ INLINE KeyboardKeycode keymap(uint8_t code) {
|
||||
case 16: return KEY_P;
|
||||
case 72: return KEY_PAGE_DOWN;
|
||||
case 69: return KEY_PAGE_UP;
|
||||
case 85: return KEY_PAUSE;
|
||||
case 51: return KEY_PERIOD;
|
||||
case 66: return KEY_PRINT;
|
||||
case 17: return KEY_Q;
|
||||
@@ -76,6 +77,7 @@ INLINE KeyboardKeycode keymap(uint8_t code) {
|
||||
case 84: return KEY_RIGHT_GUI;
|
||||
case 82: return KEY_RIGHT_SHIFT;
|
||||
case 19: return KEY_S;
|
||||
case 86: return KEY_SCROLL_LOCK;
|
||||
case 47: return KEY_SEMICOLON;
|
||||
case 52: return KEY_SLASH;
|
||||
case 41: return KEY_SPACE;
|
||||
|
||||
Reference in New Issue
Block a user