1
0
mirror of https://github.com/gdsports/USBHost_t36 synced 2024-11-23 09:32:19 -05:00
Go to file
Kurt Eckhardt c5edb1c25f Add Xbox One controller support
While the other Joystick objects currently supported by the USB Host
code are driven by HID data, the Xbox does not contain HID data and
instead works at the top level.

To handle this I made the Joystick object use multiple InHeritence like:
class JoystickController : public USBDriver, public USBHIDInput

This allowed me to have the object work either way.  This did add some
complexity in that some of the methods like  is the object connected
(The bool operator) had to be overwritten as both of the bases classes
had it.  In addition needed to update the other query functions to be
able to grab the data from mydevice or device depending on which type of
controller was connected.

Since this looked like a valid way, I then merged the Keyboard Extras
code that Keyboard and made it also do a similar multiple inheritance.
In this case however I restricted the HID top level report handle code
to only accept it if on the same object that claimed the keyboard.

The mouse test app was updated as well
2017-11-20 09:19:25 -08:00
examples Add Xbox One controller support 2017-11-20 09:19:25 -08:00
antplus.cpp AntPlus fixes 2017-10-21 08:45:09 -07:00
antplusdefs.h Arduino style API for AntPlus payload parsers 2017-10-21 03:34:40 -07:00
ehci.cpp Fix hang part 2... 2017-11-11 13:20:04 -08:00
enumeration.cpp String buffers - Devices contribute buffers 2017-10-19 14:57:52 -07:00
hid.cpp RAWHID Support 2017-11-20 08:54:56 -08:00
hub.cpp String buffers - Devices contribute buffers 2017-10-19 14:57:52 -07:00
joystick.cpp Add Xbox One controller support 2017-11-20 09:19:25 -08:00
keyboard.cpp Add Xbox One controller support 2017-11-20 09:19:25 -08:00
keywords.txt Add Xbox One controller support 2017-11-20 09:19:25 -08:00
library.properties Convert to Arduino library format 2017-03-07 07:40:06 -08:00
memory.cpp String buffers - Devices contribute buffers 2017-10-19 14:57:52 -07:00
midi.cpp String buffers - Devices contribute buffers 2017-10-19 14:57:52 -07:00
mouse.cpp RAWHID Support 2017-11-20 08:54:56 -08:00
print.cpp Fix print() & println() conflict with Arduino Print class 2017-10-15 13:11:46 -07:00
rawhid.cpp RAWHID Support 2017-11-20 08:54:56 -08:00
serial.cpp Serial cleanup - flush, timeout 2017-11-10 16:37:12 -08:00
USBHost_t36.h Add Xbox One controller support 2017-11-20 09:19:25 -08:00