Private fork

Fork of USBDevice by mbed official

Files at this revision

API Documentation at this revision

Comitter:
armdran
Date:
Mon Mar 02 15:01:12 2015 +0000
Parent:
8:335f2506f422
Commit message:
added ESC keycode

Changed in this revision

USBHID/USBKeyboard.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/USBHID/USBKeyboard.cpp	Fri Mar 01 13:10:29 2013 +0000
+++ b/USBHID/USBKeyboard.cpp	Mon Mar 02 15:01:12 2015 +0000
@@ -60,7 +60,7 @@
     {0, 0},             /* CAN */
     {0, 0},             /* EM  */
     {0, 0},             /* SUB */
-    {0, 0},             /* ESC */
+    {0x29, 0},             /* ESC */
     {0, 0},             /* FS  */
     {0, 0},             /* GS  */
     {0, 0},             /* RS  */
@@ -221,7 +221,7 @@
     {0, 0},             /* CAN */
     {0, 0},             /* EM  */
     {0, 0},             /* SUB */
-    {0, 0},             /* ESC */
+    {0x1b, 0},             /* ESC */
     {0, 0},             /* FS  */
     {0, 0},             /* GS  */
     {0, 0},             /* RS  */
@@ -443,7 +443,7 @@
 }
 
 bool USBKeyboard::keyCode(uint8_t key, uint8_t modifier) {
-    // Send a simulated keyboard keypress. Returns true if successful.
+    // ### a simulated keyboard keypress. Returns true if successful.
     HID_REPORT report;
 
     report.data[0] = REPORT_ID_KEYBOARD;