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:
- 4:02c7cd7b2183
- Parent:
- 3:3514575d4f86
- Child:
- 6:cc35eb643e8f
diff -r 3514575d4f86 -r 02c7cd7b2183 USBJoystick/USBJoystick.h --- a/USBJoystick/USBJoystick.h Wed Jul 23 17:53:28 2014 +0000 +++ b/USBJoystick/USBJoystick.h Thu Jul 24 05:50:36 2014 +0000 @@ -90,11 +90,11 @@ * @param product_id Your product_id (default: 0x0002) * @param product_release Your product_release (default: 0x0001) */ - USBJoystick(uint16_t vendor_id = 0x1234, uint16_t product_id = 0x0100, uint16_t product_release = 0x0001): + USBJoystick(uint16_t vendor_id = 0x1234, uint16_t product_id = 0x0100, uint16_t product_release = 0x0001, int waitForConnect = true): USBHID(8, 8, vendor_id, product_id, product_release, false) { _init(); - connect(); + connect(waitForConnect); }; /**