Skip to content

Commit b163583

Browse files
authored
feat(usb): Add more keys in USBHIDKeyboard (#9190)
* Add more keys value that can be used with Keyboard.press()
1 parent 83e2612 commit b163583

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: libraries/USB/src/USBHIDKeyboard.h

+5
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ typedef union {
6363
#define KEY_DOWN_ARROW 0xD9
6464
#define KEY_LEFT_ARROW 0xD8
6565
#define KEY_RIGHT_ARROW 0xD7
66+
#define KEY_MENU 0xFE
6667
#define KEY_SPACE 0x20
6768
#define KEY_BACKSPACE 0xB2
6869
#define KEY_TAB 0xB3
@@ -74,6 +75,7 @@ typedef union {
7475
#define KEY_PAGE_DOWN 0xD6
7576
#define KEY_HOME 0xD2
7677
#define KEY_END 0xD5
78+
#define KEY_NUM_LOCK 0xDB
7779
#define KEY_CAPS_LOCK 0xC1
7880
#define KEY_F1 0xC2
7981
#define KEY_F2 0xC3
@@ -99,6 +101,9 @@ typedef union {
99101
#define KEY_F22 0xF9
100102
#define KEY_F23 0xFA
101103
#define KEY_F24 0xFB
104+
#define KEY_PRINT_SCREEN 0xCE
105+
#define KEY_SCROLL_LOCK 0xCF
106+
#define KEY_PAUSE 0xD0
102107

103108
#define LED_NUMLOCK 0x01
104109
#define LED_CAPSLOCK 0x02

0 commit comments

Comments
 (0)