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:
3:f1a8ec4659f8
Parent:
2:84ea6e2fb4b6
--- a/usbhid.h	Sat Dec 17 13:13:59 2016 +0000
+++ b/usbhid.h	Sat Dec 17 15:10:12 2016 +0000
@@ -2,8 +2,9 @@
 /* USB HID class device */
 /* Copyright (c) Phil Wright 2008 */
 
-#ifndef USBHID_H
-#define USBHID_H
+/* Modified by yours truly. */
+
+#pragma once
 
 #include "usbdevice.h"
 
@@ -15,6 +16,7 @@
 protected:
     virtual void deviceEventReset();
     virtual void endpointEventEP1In();
+    virtual void endpointEventEP2In();    
     virtual bool requestGetDescriptor();
     virtual bool requestSetConfiguration();
 };
@@ -32,5 +34,3 @@
 protected:
     virtual bool requestGetDescriptor();
 };
-
-#endif /* USBHID_H */
\ No newline at end of file