Please do not post a support request without first reading and following the advice in

  • Hi everyone.

    I am having an issue trying to set up 4 joystick to play in MAME. I have made an arcade machine with 2 retro joysticks, besides this I have 2 joy pads (xbox and play... non official). The retro joysticks works perfectly both in emulator and in the games, the other 2 controls works only in the emulationstation (and I have them perfectly set: I can move through the menus and games and launch them with those pads). The problem is when I try to set them (the P3 and P4 controls) in MAME because the emulator doesn´t recognize them, I mean, I press TAB button in the keyboard, then I select Input (general) and try to set the P3 start button pressing enter in that option... then MAME waits for an action which never arrives :| I press buttons, but nothing happens :(

    As you can see in the picture, the 4 controls are found when a mame game is launched:

    Thanks a lot!!

    NOTE: before to build the arcade, when I was only using the joy pads, there were no problem and MAME was able to recognize them.

  • Global Moderator

  • Hi @dankcushions

    Sorry, I read the READ FIRST in General Discussion and Gaming, and I thought I was ready to go :/
    About the info asked in that thread, here you have:

    Pi Model or other hardware: 4 (4GB)
    Power Supply used: 2A
    RetroPie Version Used: 4.5.8
    Built From: Clone restropie-setup from official github and install on top of raspbian
    USB Devices connected: 1 hdd, 1 bluetooth keyboard, a hub with 4 controllers (2 retro joysticks + 2 joy pads)
    Controller used: ummm I don´t know what does it mean
    Error messages received: I don´t get any error message in the screen
    Log found in /dev/shm/runcommand.log (if relevant):

    Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-mame2003/ --config /opt/retropie/configs/mame-libretro$
    [CDROM] Could not open /dev/sg0, please check permissions.

    I hope it is enough.

  • @eloyucu You need a 3A supply for a Pi 4 minimum. You have a Hard Drive too, you could do with more unless it's a powered one.

  • @rbaker Hiand thanks fornthe answer.

    I dont think so, as I said the controllers work perfectly in the emulationstation, it is only in the mame where the joypads stop to work.

    I am thinking to try any game for 3-4 players in any other console... I'll search one on weekend!!

    PS: the plug I am using is 3 amps, and other application which use the hdd (like plex) work good too.

  • @eloyucu The official spec for the PSU is 5.1v at 3A (15.3W). So if yours provides 5+/-0.25v and your setup doesn't draw more than 3A without dropping the voltage, you are fine. It's just that you posted you were using a power supply rated at 2A which is not enough even for earlier Pi models. The critical part is the voltage. An excessive draw from an underrated device will cause it to collapse and things will stop working.

  • Global Moderator

    @eloyucu said in Four joysticks in MAME:

    I dont think so, as I said the controllers work perfectly in the emulationstation, it is only in the mame where the joypads stop to work.

    Enable the debug log in the Runcommand launch menu when you launch a ROM, this will add more info in the /dev/shm/runcommand.log file and could give an indication of why it's not working. Post the output on so we can take a look.

  • @rbaker ooppss!! sorry, I make a mistake, I said 2A, but it is 3A :)

  • @mitu guys... hehe... you will kill me... I don´t know what I did or what I am doing now, but all controllers are working. The only problem now is that the player 3 can´t use the start button because I edit that button in the mame´s setup and there (in that menu) the buttons of the joypads don´t work, so the P3 start button now is None :(

    Is there any file where to edit that manually?


  • Global Moderator

    @eloyucu said in Four joysticks in MAME:

    Is there any file where to edit that manually?

    What MAME emulator are you running ? If it's MAME2003, then no, the configuration file is binary and not editable.

  • @mitu ok!!! All is perfectly setup. I was doing a bad thing here on the mame´s menu, I thought the button was configured just when I pressed the key in the joypad, but not... I have to press only one time and then wait.

    Ok!! alll my problems are solved.

    Thanks a lot to all of you.

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.