A fully-Android-compatible two joysticks USB driver for LPC1768. The joysticks have 1 hat, 6 buttons, and there are 1P, 2P buttons.

Dependencies:   mbed

Fork of app-board-Joystick by Chris Styles

Revision:
2:84ea6e2fb4b6
Parent:
1:76c47d2ba442
Child:
3:f1a8ec4659f8
--- a/usbhid.h	Fri Dec 16 18:17:42 2016 +0000
+++ b/usbhid.h	Sat Dec 17 13:13:59 2016 +0000
@@ -28,7 +28,7 @@
 {
 public:
     USBJoystick();
-    bool update(unsigned char gamepad_id, unsigned char stick, unsigned char buttons);
+    bool update(uint8_t gamepad_id, uint8_t stick, uint32_t buttons);
 protected:
     virtual bool requestGetDescriptor();
 };