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:
- 62:f071ccde32a0
- Parent:
- 54:fd77a6b2f76c
- Child:
- 63:5cd1a5f3a41b
--- a/USBJoystick/USBJoystick.h Thu Jun 02 18:58:52 2016 +0000 +++ b/USBJoystick/USBJoystick.h Thu Jun 02 22:52:25 2016 +0000 @@ -60,6 +60,8 @@ else return false; } + + bool write(const T *item) { return write(*item); } private: int advance(int i) @@ -78,8 +80,10 @@ const uint8_t IFC_ID_KB = 1; // keyboard interface // keyboard interface report IDs -const uint8_t REPORT_ID_KB = 1; -const uint8_t REPORT_ID_MEDIA = 2; +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 /* Common usage */ enum JOY_BUTTON { @@ -343,7 +347,6 @@ { return interface == 0 || interface == 1; } virtual bool EP1_OUT_callback(); - virtual bool EP4_OUT_callback(); private: