Fork of the official USBDevice library
Fork of USBDevice by
Revision 71:4b852b25fdeb, committed 2017-04-27
- Comitter:
- screamer
- Date:
- Thu Apr 27 14:27:12 2017 +0100
- Parent:
- 70:fb9bfc719267
- Parent:
- 65:1031882d3481
- Child:
- 72:7632ff1d7440
- Commit message:
- Merge Logo/Windows key support
Changed in this revision
--- a/USBHID/USBKeyboard.h Thu Apr 27 14:26:37 2017 +0100 +++ b/USBHID/USBKeyboard.h Thu Apr 27 14:27:12 2017 +0100 @@ -22,11 +22,16 @@ #include "USBHID.h" #include "Stream.h" -/* Modifiers */ +/* Modifiers, left keys then right keys. */ enum MODIFIER_KEY { - KEY_CTRL = 1, - KEY_SHIFT = 2, - KEY_ALT = 4, + KEY_CTRL = 0x01, + KEY_SHIFT = 0x02, + KEY_ALT = 0x04, + KEY_LOGO = 0x08, + KEY_RCTRL = 0x10, + KEY_RSHIFT = 0x20, + KEY_RALT = 0x40, + KEY_RLOGO = 0x80, };