-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for another USB Gamepad #68
Comments
I flagged this issue with "help wanted". I don't have theses controllers at hand. |
I have the first controller and Waveshare RP2040-PiZero tried to compile debug version the compilation failed
|
Can you attach the complete output of bld.sh? |
I don't know what just happened retried compilation ended successfully |
do I need debug probe to send you debugging outputs? |
Debug probe is the best option, but not necessary when you use a Raspberry PI 4 or 5 for building the project. You then can connect GPIO0 GPIO1 and GND from the Pico to the raspberry Pi and use minicom to capture the debug printf statements. I see they have left it out on the recent getting started guide. See this older version of the getting started guide chapter 4.5. See "Hello World" UART output. |
sorry for the delayed response |
Ok, thanks. In the next couple of days i will create a testbuild for this controller type. This will not get you a functional controller, but it will output some debug data UART. Like the output you gave me. Frank |
I compiled debug version for Waveshare RP2040-PiZero |
Oh yes, you already mentioned that previously. Can you also send me an image and the brand and product name of the controller? It is not available from AlieExpress for my country. |
Does not have any branding name on it. |
Below a test debug build for the WaveShare device. For your gamepad, the output starts with "MantaPad: len =" If you don't see this kind output, the gamepad might not work. Note Because the debug prints are slowing down the emulator, you see a lot of red screen flicker. |
Pulled and compiled USB branch here is the output of the key pressing
one more request don't delete USB branch for future game-pads support |
Great, this controller will certainly work. Thanks for looking up the button presses. I will continue to work on this and also on the Genesis Mini. I'll keep you informed. |
Can you try this .uf2 file from the USB branch with your controller? Cannot test it myself. The Genesis Mini 1 controller however works well for me. |
It is getting detected but not working properly
even when I remove the game pad the menu of the roms sometimes shuffle and sometimes not, Like some kind of gpio header interference I think |
piconesPlus.zip |
usbcontrollertest.zip |
I'm getting key pressing outputs from usbcontrollertest.uf2 only after unplug and replug usb gamepad
the release compilation still flaky and wired sometime work and sometime not, even hung after pressing reset, here is photo of my setup https://postimg.cc/47kstHVs |
Removed UART pins still not working properly and then unpluged USB pad the menu sometimes shuffles on it's own |
Can you activate internal pullup/pulldown on GPIOs used for other controllers? |
Not that i'm aware of. Do you have an USB keyboard to test?
|
I could disable WII-Pad support (GPIO2 and GPIO3) for testing |
This is the version with GPIO2 and GPIO3 disabled: |
Beginning to suspect your Waveshare board has a malfunction, but i want to wait until my AliExpress controller arrives to rule anything out. |
After GPIO2 and GPIO3 disabled both my USB-keyboard and game pad worked well no more random roms menu shuffling after selecting a game I have to unplug an re plug USB cable of the game pad or keyboard to start working in the game
|
Ok glad it works now somehow for you. It is odd however, i do not have any issue you describe, even with GPIO2 an 3 still enabled. Keyboard works well, USB gamepad works well everytime. Do not need to unplug and re-plug anything. Regarding the message. Don't know why it detects two instances of the same device. I got the same message however. |
Just a guess. I'm using a 2Amp USB power supply. Maybe you are using a power supply with less amps. If so can you try one with minimal 2Amp? |
I have good power supply it can handle up to 3Amp. |
In the CMakeLists.txt Line 155 and 156, set value to -1 in stead of 2 and 3. I just don't get it. It works just fine on my board, every time. Waiting for the AliExpress controller to arrive.
|
I just purchased second WaveShare device. This also worked without any problem with the WII gpio pins still enabled. Never needed to re-plug the gamepad to get it working in a game. Also switching keyboard and gamepad back and forth gave no problem. When you build from source, what version of the SDK are you using? I'm building using the latest Pico SDK 2.0.0. I think this has not important however since you have the same issues with the SDK i send you. Do you have a second WaveShare RP2040-PiZero at hand on which you can test it? |
I'm using SDK 2.0.0, And only have one WaveShare RP2040-PiZero right now. |
Today i got the AlieExpress controllers. I ordered a NES style and a SNES . The SNES type controller works without any problems, however the NES controller has the same problem as you describe, i need to re-plug the controller after i started a game. However, the shuffling in the menu's does not occur. I tested with GP2 and 3 still enabled. It's strange you have the problem with the SNES type of controller. After a game is selected, the RP2040 reboots and starts the game, maybe that leaves the (S)NES controller in somekind of hung state. I'll look into that. Another weird thing is that B on the NES controller is X on the SNES. |
I cannot conclude otherwise than that this is as good as it gets with these cheap AliExpress controllers. |
Same issue after reboot I have to re-plug the controller.
|
I merged the USB branch to main. Keyboard, XInput, Genesis Mini and PSClassic controllers added. |
Thanks for your effort Mr Frank |
You are welcome. |
Is it ok to close this issue? |
One more last chance please, Is it possible to re-init usb game pad at least for Mantapad after emulator reboots |
I think i need some help here for this. |
Hi, Could you add support for this USB game pad:
Product ID: 0x081f
Vendor ID: 0xe401
https://www.aliexpress.com/item/32863906297.html
another question is this one supported?
https://www.aliexpress.com/item/32895822539.html
The text was updated successfully, but these errors were encountered: