USB Joystick library, modified to work as a 6 DOF joystick.

Dependents:   USBJoystick_Test

Fork of USBJoystick by Wim Huiskamp

Revision:
4:0ffbedd2cb73
Parent:
3:f8be03f31e6c
diff -r f8be03f31e6c -r 0ffbedd2cb73 USBJoystick.h
--- a/USBJoystick.h	Fri Jan 13 08:15:48 2017 +0000
+++ b/USBJoystick.h	Fri Jan 13 17:11:32 2017 +0000
@@ -92,7 +92,7 @@
      */
 //     USBJoystick(uint16_t vendor_id = 0x1234, uint16_t product_id = 0x0100, uint16_t product_release = 0x0001, int waitForConnect = true):    // 4 buttons, no padding on buttons
 //     USBJoystick(uint16_t vendor_id = 0x1234, uint16_t product_id = 0x0500, uint16_t product_release = 0x0001, int waitForConnect = true):    // 8 buttons, no padding on buttons
-     USBJoystick(uint16_t vendor_id = 0x1234, uint16_t product_id = 0x0700, uint16_t product_release = 0x0001, int waitForConnect = true):    // 32 buttons, no padding on buttons
+     USBJoystick(uint16_t vendor_id = 0x1234, uint16_t product_id = 0x0702, uint16_t product_release = 0x0001, int waitForConnect = true):    // 32 buttons, no padding on buttons
        USBHID(0, 0, vendor_id, product_id, product_release, false) {
          _init();
          connect(waitForConnect);
@@ -155,7 +155,7 @@
      int16_t _y;
      int16_t _z;
      int16_t _rx;
-     int16_t _ry;              
+     int16_t _ry;
      int16_t _rz;
      uint32_t _buttons;
      uint8_t _hat;