A fully-Android-compatible two joysticks USB driver for LPC1768. The joysticks have 1 hat, 6 buttons, and there are 1P, 2P buttons.
Fork of app-board-Joystick by
Diff: usbhid.h
- Revision:
- 2:84ea6e2fb4b6
- Parent:
- 1:76c47d2ba442
- Child:
- 3:f1a8ec4659f8
diff -r 76c47d2ba442 -r 84ea6e2fb4b6 usbhid.h --- 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(); };