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: FastAnalogIn FastIO USBDevice mbed FastPWM SimpleDMA
Fork of Pinscape_Controller by
Diff: USBJoystick/USBJoystick.h
- Revision:
- 6:cc35eb643e8f
- Parent:
- 4:02c7cd7b2183
- Child:
- 9:fd65b0a94720
--- a/USBJoystick/USBJoystick.h Sun Jul 27 18:24:51 2014 +0000
+++ b/USBJoystick/USBJoystick.h Wed Aug 06 23:08:07 2014 +0000
@@ -91,7 +91,7 @@
* @param product_release Your product_release (default: 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)
+ USBHID(16, 8, vendor_id, product_id, product_release, false)
{
_init();
connect(waitForConnect);
@@ -152,11 +152,11 @@
virtual uint8_t *stringIproductDesc();
private:
- int8_t _x;
- int8_t _y;
- int8_t _z;
- int8_t _rx;
- int8_t _ry;
+ int16_t _x;
+ int16_t _y;
+ int16_t _z;
+ int16_t _rx;
+ int16_t _ry;
uint16_t _buttons;
void _init();
