PaulStoffregen / USBHost_t36

USB Host Library for Teensy 3.6 and 4.0
167 stars 86 forks source link

Xbox1 keyboard #13

Closed KurtE closed 6 years ago

KurtE commented 6 years ago

Paul,

This change Also has the changes of #11 and #12 requests

What has changed since #12 is that I added XBox1 Joystick controller support.

I decided to byte the bullet and use multiple inheritance and have the Joystick be both a HID Input device as well as a USBDriver device. This was needed as XBox1 is not a HID device... I first had a stand alone object, but it felt messy. So decide to combine them.

Since I did that and it worked. I did not like my first pass of Keyboard extras that had a separate object that grabbed a HID report to process some of the MIDI and System level keys of a keyboard. So now the Keyboard object like the Joystick uses multiple inheritance

If needed I can separate these changes from RAWHID support.

PaulStoffregen commented 6 years ago

Wow, there's a lot here. I'm going to merge it all now, (maybe) make some edits later.

Really want to get this in before 1.41...

KurtE commented 6 years ago

Thanks Paul,

Let me know if you want me to cleanup/change anything