USB device stack - Added support for the logo/windows key to USB keyboard.
Fork of USBDevice by
Revision 60:1031882d3481, committed 2015-12-09
- Comitter:
- AndyA
- Date:
- Wed Dec 09 10:57:21 2015 +0000
- Parent:
- 59:2af474687369
- Commit message:
- Added support for the logo key (a.k.a. the windows key) as a modifier on keyboard key presses.
Changed in this revision
USBHID/USBKeyboard.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/USBHID/USBKeyboard.h Thu Aug 13 15:46:06 2015 +0100 +++ b/USBHID/USBKeyboard.h Wed Dec 09 10:57:21 2015 +0000 @@ -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, };