Setting a controller with MAME and a Pi Zero
-
Please follow these instructions in order to post the information needed to help you: https://retropie.org.uk/forum/topic/3/read-this-first
-
Pi Model: Zero W
Power Supply used: PI supply from the Pi shop
RetroPie Version Used: Retropie v4.2
Built From: SD Image on RetroPie website
USB Devices connected: Wireless keyboard/touch pad combo and wireless Playstation Controller
Controller used: wireless Playstation Controller
Error messages received: None
Emulator: MAME4ALL -
@garry1540 If you use a "powered" USB hub (in other words, one that you also have to plug into a power adapter, not just your rPi) you should be able to connect all of those devices simultaneously.
Do I understand that you are currently doing this?
- Booting the rPi with the keyboard attached
- Starting the MAME4ALL core
- Pressing the TAB button to open the menu
- Disconnecting keyboard and attaching controller
- Pressing buttons on the controller does not show up in the Tab menu configuration
If that's right, I do think you may have having a problem where the Pi doesn't recognize the controller when it's attached during the middle of a MAME4ALL session. In that case using a powered USB hub that allows you to connect all of your devices at once might be the fix as you speculated. (Maybe someone else with a Pi Zero will see this thread).
In the meantime, I do think it would help if you could confirm whether or not I understand your scenario correctly.
-
Hi @dankcushions , I know that mame2003 is more your thing but if I'm understanding this question right it might be the basis for an enhancement to the MAME docs.
Can you tell based on the description whether the user does in fact need to get a USB hub, because the controller input would not be detected if it's plugged in once MAME4ALL is already loaded and in the Tab menu?
If that's the case I might add a note to docs to the effect of "make sure you have a way to connect a keyboard and controller simultaneously from the time the rPi boots until you get into MAME4ALL".
-
Thanks for the reply.
Yes you understand the problem correctly. The keyboard works fine but when I unplug it and plug in the controller at the point where it is waiting for an input to setup a key no input is detected from the controller. My controller plugs into a HUB that allows a second controller for a second player. I have now tried my controller as both controller 1 and 2 and it is the same.Do you think if I purchased one of these micro USB doublers that would allow both keyboard and controller HUB to be plugged into what is effectively a single micro USB port it would work?
It seems odd that no one else with a PI Zero W wouldn't have reported this problem with MAME before.
-
I have actually found this, hopefully with be the solution to my problem.
-
I have all three Zeros, and I never saw the problem because I never did what you did. I suspect that's why others never asked the question before.
I do have a problem when running my Zeros with a powered hub. If I want all of the peripherals recognized, I need to wait about 10 seconds after I apply power to connect the hub.
-
@garry1540 I tend to agree that if this were the issue with the Pi Zero than someone else might have mentioned it by now. I truly don't have your hardware so I don't like to counsel you to spend money, not knowing for sure if it will be the answer.
-
I just came across this , I know its older but I am having the same issue. Same problem, did it turn out to be the hub? I am waiting for my new hub to arrive, hoping that fixes it.
-
@garry1540 I use those cheapo 2 or 3 port hubs on my Pi Zeroes and have had no problems. I usually have a wireless controller, wireless keyboard and usb stick plugged in. Yes, it should work to configure a controller for mame4all (it does for me). The only thing I do is swap a couple of buttons around though (I'm used to a certain layout).
-
...and configure it so select + start exits to emulationstation.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.