Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of USBDevice by
Revision 43:ff5b9470832e, committed 2015-03-02
- 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;