Private fork
Fork of USBDevice by
Diff: USBHID/USBKeyboard.cpp
- Revision:
- 43:ff5b9470832e
- Parent:
- 1:80ab0d068708
diff -r 335f2506f422 -r ff5b9470832e USBHID/USBKeyboard.cpp --- 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;