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

Dependents:   USBJoystick_Test

Fork of USBJoystick by Wim Huiskamp

Revision:
4:0ffbedd2cb73
Parent:
2:1549541d3b4b
Child:
5:767e64df3776
diff -r f8be03f31e6c -r 0ffbedd2cb73 USBJoystick.cpp
--- a/USBJoystick.cpp	Fri Jan 13 08:15:48 2017 +0000
+++ b/USBJoystick.cpp	Fri Jan 13 17:11:32 2017 +0000
@@ -148,7 +148,7 @@
                  USAGE(1), 0x33,                 // RX
                  USAGE(1), 0x34,                 // RY
                  USAGE(1), 0x35,                 // RZ
-                 LOGICAL_MINIMUM(2), 0xff, 0xff, // -32768 (using 2's complement)
+                 LOGICAL_MINIMUM(2), 0x00, 0x80, // -32768 (using 2's complement)
                  LOGICAL_MAXIMUM(2), 0xff, 0x7f, // 32767 (0x7fff, least significant byte first)
                  REPORT_SIZE(1), 0x10,  // REPORT_SIZE describes the number of bits in this element (16, in this case)
                  REPORT_COUNT(1), 0x06,