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.
Dependencies: mbed FastIO FastPWM USBDevice
Diff: USBJoystick/USBJoystick.h
- Revision:
- 63:5cd1a5f3a41b
- Parent:
- 62:f071ccde32a0
- Child:
- 73:4e8ce0b18915
--- a/USBJoystick/USBJoystick.h Thu Jun 02 22:52:25 2016 +0000 +++ b/USBJoystick/USBJoystick.h Tue Jun 14 20:24:34 2016 +0000 @@ -60,8 +60,6 @@ else return false; } - - bool write(const T *item) { return write(*item); } private: int advance(int i) @@ -80,10 +78,8 @@ const uint8_t IFC_ID_KB = 1; // keyboard interface // keyboard interface report IDs -const uint8_t REPORT_ID_JS = 1; // joystick report -const uint8_t REPORT_ID_STAT = 2; // private status/query report -const uint8_t REPORT_ID_KB = 3; // keyboard report -const uint8_t REPORT_ID_MEDIA = 4; // media key report +const uint8_t REPORT_ID_KB = 1; +const uint8_t REPORT_ID_MEDIA = 2; /* Common usage */ enum JOY_BUTTON { @@ -347,6 +343,7 @@ { return interface == 0 || interface == 1; } virtual bool EP1_OUT_callback(); + virtual bool EP4_OUT_callback(); private: