a

Dependents:   WIRELESS_MOUSE_RX

Fork of USBDevice by mbed official

Revision:
70:2c525a50f1b6
Parent:
47:a0cd9646ecd1
--- a/USBHID/USBKeyboard.h	Fri Nov 11 17:59:00 2016 +0000
+++ b/USBHID/USBKeyboard.h	Thu Jul 20 10:14:36 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,
 };