Closed glicnak closed 1 month ago
What did you flash your controller with exactly? Sounds like you've downloaded the latest release zip and built that, or are building from outdated master branch?
I used the latest release zip (2.4.0)
Yeah old release zips from 2.4.0 and prior don't work because the arduino-pico version was not pinned, and the Adafruit TinyUSB Arduino library annoyingly seems to have been updated in such a way that it broke the XInput functionality, so pinning the arduino-pico version is necessary for now. Use the master branch and it should work fine. It'll have to redownload all the dependencies again though when you open it in VS code so wait for it to do that first.
I will try that! Btw while I have you here:
1: Thank you so much for this project and all your help!
and 2: I tried to add new buttons, and it seems to be working. I just want to know if I did it properly.. What I did was: Include-core-state -> add buttons Src-comms-b0xxinputviewer -> add buttons and change report [#] to reflect the new amount of Scan Inputs Include-comms0b0xxinputviewer -> change report [#] to match above Config-pico-config.cpp → remap buttons to pins
Were the b0xxinputviewer changes useless?
And 3: Is it possible different backends handle things like left stick inputs differently? There's a trick in smash bros that requires holding x:169 and y:128 perfectly (even 1 off won't work). When I run the controller through the gamecube wire using the Gamecube Backend and melee 20 button mode, this works 100% of the time. When I plug in via usb to the switch dock and change modes to go to the melee 20 button mode, it never works. Anyways, not a big deal at all, I was just curious if you had a quick answer for that one.
Thanks again for all your help!
Master branch worked :)
Oh okay that makes sense. So if I want to add buttons and I don't care about the viewer, all I need is: Include-core-state -> add buttons Config-pico-config.cpp → map buttons to pins And that's it? Awesome!
I'll check it out and see what I can do! I'm replicating eSam's smashbox mod, and right now it works perfectly on gamecube mode so that's good enough for me.
Thanks so much dude!!
Yeah pretty much. Also, you may want to check out the configurator branch (which is the current development branch), as it supports a lot more buttons by default and has a powerful new configuration system.
I am able to get the controller to register on my pc by holding Z as a DInput Controller. It also works on my switch by holding X plugged into the dock, and as a GCC controller by plugging into the adapter.
However, if I simply plug the usb into my computer without holding anything (which should use XInput backend), nothing happens. The USB device is unidentified ("Unknown USB Device (Invalid Configuration Descriptor)"). I have tried reinstalling my drivers, and I have also tried it on different PC's, all giving the exact same error... I am kind of at a loss of what to do next.. Any help would be greatly appreciated!