dmadison / ArduinoXInput

XInput library for USB capable Arduino boards
http://www.partsnotincluded.com/arduino-xinput-library/
MIT License
357 stars 61 forks source link

USB Descriptors for Arduino Due and MKR family? #27

Closed shejan0 closed 4 years ago

shejan0 commented 4 years ago

As of current, none of the MKR family (Due, Zero, etc.) are not supported by the XInput library. I am assuming that the main library does not need to be edited. But that USB descriptors for the Native USB port can exist to mimic an Xbox 360 controller.

I recently picked up Due thinking it was supported since it had a specific Native USB that can be used to mimic the Keyboard and Mouse but since there are no descriptors, I cannot use it as an XInput device.

dmadison commented 4 years ago

That's correct, none of the SAMD boards are currently supported. Someone would need to modify the SAMD core to work with the library. This requires:

These changes are beyond what you can inject through the PluggableUSB API, which is why the library requires the standalone boards repositories.

I don't own any of the SAMD boards myself, and the Teensy and AVR implementations are enough for me. If you'd like to tackle the SAMD modifications yourself I'd be happy to link back to them.