Skip to content

Commit 143e346

Browse files
Merge pull request #4210 from adbridge/usb_logo
USB: Added support for the logo key to the keyboard
2 parents 42675bb + 906286f commit 143e346

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

features/unsupported/USBDevice/USBHID/USBKeyboard.h

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,16 @@
2222
#include "USBHID.h"
2323
#include "Stream.h"
2424

25-
/* Modifiers */
25+
/* Modifiers, left keys then right keys. */
2626
enum MODIFIER_KEY {
27-
KEY_CTRL = 1,
28-
KEY_SHIFT = 2,
29-
KEY_ALT = 4,
27+
KEY_CTRL = 0x01,
28+
KEY_SHIFT = 0x02,
29+
KEY_ALT = 0x04,
30+
KEY_LOGO = 0x08,
31+
KEY_RCTRL = 0x10,
32+
KEY_RSHIFT = 0x20,
33+
KEY_RALT = 0x40,
34+
KEY_RLOGO = 0x80,
3035
};
3136

3237

0 commit comments

Comments
 (0)