Go Down

Topic: Emulating HORI controller with Arduino Micro (Read 249 times) previous topic - next topic

konaoki

Jul 18, 2019, 05:18 pm Last Edit: Jul 18, 2019, 07:21 pm by konaoki
I would like to emulate a HORI Gamecube controller with the Arduino Micro for the Nintendo Switch to recognize it. I would like an end result where I just plug my arduino into the switch and the switch sees it as just another compatible controller.

My current approach is basically following these instructions:
https://www.partsnotincluded.com/tutorials/how-to-emulate-an-xbox-controller-with-arduino-xinput/
Here is main library in question:
https://github.com/dmadison/ArduinoXInput

However, the library is made for emulating XBox controllers.

https://github.com/dmadison/ArduinoXInput/blob/master/extras/XInputUSB_API.md

In the above documentation, it says something about being able to modify the device and configuration descriptors for the board. I would be able to sniff those from the HORI controller, but I don't know how I could actually change that on the Arduino Micro. How would I do that?

Also, do you think this approach would work in general?

konaoki

Update
https://github.com/dmadison/ArduinoXInput_AVR
While looking at this, I found:
https://github.com/dmadison/ArduinoXInput_AVR/blob/master/cores/arduino/xinput/USB_XInput_Descriptors.cpp
Listing the descriptors. I'm wondering if I would be able to modify this and load the core onto the arduino.

konaoki

I'm starting to understand the library better, and I'm now thinking of just forking the original Arduino core and working from there.
https://github.com/arduino/ArduinoCore-avr

Go Up