diff options
author | Devaev Maxim <[email protected]> | 2018-07-27 12:48:49 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-07-27 12:48:49 +0300 |
commit | dcedf161425a233bde1fe85bb2f4836ba57d1f0a (patch) | |
tree | 8e5067f318a00cbfe5499f2a0f8ce49592ce9f53 /hid | |
parent | d2da0829b98e9aca474867f5ce9d5929f8b234af (diff) |
added pause and scrlk keys
Diffstat (limited to 'hid')
-rw-r--r-- | hid/keymap.in | 5 | ||||
-rw-r--r-- | hid/src/keymap.h | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/hid/keymap.in b/hid/keymap.in index 8c574b63..da9ddf25 100644 --- a/hid/keymap.in +++ b/hid/keymap.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 diff --git a/hid/src/keymap.h b/hid/src/keymap.h index 7e5f24b7..8066be91 100644 --- a/hid/src/keymap.h +++ b/hid/src/keymap.h @@ -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; |