Navigation

    RetroPie forum home
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    [SOLVED] Dualshock PS4 controller does not work on MAME

    Help and Support
    mame ps4 controller retropie 4.3
    2
    9
    6380
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • francegue
      francegue last edited by francegue

      Hello everyone!

      I have just installed from scratch on a new sd card the RetroPie v4.3 for a PI2.
      I have a wired dualshock PS4 controller (connected via usb) which I configured just fine on emulationstation and it is working good there.
      I uploaded one game rom for MAME and when I launch the game I simply cannot do anything, all the buttons I press are not recognised (even if I don't have any explicit error when launching the game). I have to reboot the PI to exit the game.

      Under the folder /opt/retropie/configs/all/retroarch-joypads I have the cfg file which has been created by emulation station.
      I also uncommented and configured as below the following property in the file /opt/retropie/configs/all/retroarch.cfg :
      joypad_autoconfig_dir = "/opt/retropie/configs/all/retroarch-joypads/"

      What am I missing?

      Thanks,
      Francesca

      dankcushions 1 Reply Last reply Reply Quote 0
      • dankcushions
        dankcushions Global Moderator @francegue last edited by

        @francegue please provide all the information requested in https://retropie.org.uk/forum/topic/3/read-this-first

        francegue 1 Reply Last reply Reply Quote 0
        • francegue
          francegue @dankcushions last edited by

          @dankcushions said in Dualshock PS4 controller does not work on MAME:

          @francegue please provide all the information requested in https://retropie.org.uk/forum/topic/3/read-this-first

          Sure, here you go:

          Pi Model or other hardware: Raspberry Pi 2 Modello B
          Power Supply used: (If using a Pi) : the original one included in the starter kit
          RetroPie Version Used (eg 3.6, 3.8.1, 4.1 - do not write latest): v4.3
          Built From: (Pre made SD Image on RetroPie website, Berryboot, or on top of existing OS etc.. - please provide the filename of any image used) : Pre made SD Image on RetroPie website - retropie-4.3-rpi2_rpi3.img
          USB Devices connected: external usb hard disk plus PS4 dualshock controller
          Controller used: PS4 dualshock controller
          Error messages received: none
          Log found in /dev/shm/runcommand.log (if relevant): nothing relevant
          Guide used: (Mention if you followed a guide) : Retropie installed from scratch following the guide here: https://retropie.org.uk/docs/First-Installation/ . Plus manually changed the /opt/retropie/configs/all/retroarch.cfg file configuring joypad_autoconfig_dir = "/opt/retropie/configs/all/retroarch-joypads/"
          File: (File with issue - with FULL path) : not applicable
          Emulator: (Name of emulator - if applicable) : MAME
          Attachment of config files: (PLEASE USE PASTEBIN.COM FOR LARGE LOGS) : none
          How to replicate the problem: not applicable

          Thanks!

          dankcushions 1 Reply Last reply Reply Quote 0
          • dankcushions
            dankcushions Global Moderator @francegue last edited by

            @francegue said in Dualshock PS4 controller does not work on MAME:

            @dankcushions said in Dualshock PS4 controller does not work on MAME:
            Guide used: (Mention if you followed a guide) : Retropie installed from scratch following the guide here: https://retropie.org.uk/docs/First-Installation/ . Plus manually changed the /opt/retropie/configs/all/retroarch.cfg file configuring joypad_autoconfig_dir = "/opt/retropie/configs/all/retroarch-joypads/"

            why?

            File: (File with issue - with FULL path) : not applicable

            it is applicable. we need to know the game you are playing.

            Emulator: (Name of emulator - if applicable) : MAME

            there are 9 mame emulators available :) we need to know which one you are using.

            francegue 1 Reply Last reply Reply Quote 0
            • francegue
              francegue @dankcushions last edited by

              @dankcushions said in Dualshock PS4 controller does not work on MAME:

              @francegue said in Dualshock PS4 controller does not work on MAME:

              @dankcushions said in Dualshock PS4 controller does not work on MAME:
              Guide used: (Mention if you followed a guide) : Retropie installed from scratch following the guide here: https://retropie.org.uk/docs/First-Installation/ . Plus manually changed the /opt/retropie/configs/all/retroarch.cfg file configuring joypad_autoconfig_dir = "/opt/retropie/configs/all/retroarch-joypads/"

              why?

              [Fra] I read on some posts on internet that it could be a solution. I saw the property was commented, so I tried to uncomment it and fill it with the path of the joypad configuration but it didn't help.

              File: (File with issue - with FULL path) : not applicable

              it is applicable. we need to know the game you are playing.

              [Fra] Ok, I have just loaded the game called "1942", just one to try before loading the rest. In a previous installation I also loaded other games, but no one was working.

              Emulator: (Name of emulator - if applicable) : MAME

              there are 9 mame emulators available :) we need to know which one you are using.

              [Fra] Ok, sorry :) I am using "mame4all" .

              Let me know if you need any other info.

              Thanks a lot!
              Francesca

              dankcushions 1 Reply Last reply Reply Quote 0
              • dankcushions
                dankcushions Global Moderator @francegue last edited by

                @francegue mame4all isn't a libretro emulator so retroarch.cfg changes would have no effect - i suggest you revert that change.

                https://retropie.org.uk/docs/MAME/#mame4all-pi explains configuring mame4all controls, however if you're using a pi2, you should be using lr-mame2003, which IS libretro and should be all working, as far as controls go. however you will need the appropriate romset - see https://retropie.org.uk/docs/Arcade/

                francegue 1 Reply Last reply Reply Quote 0
                • francegue
                  francegue @dankcushions last edited by

                  @dankcushions said in Dualshock PS4 controller does not work on MAME:

                  @francegue mame4all isn't a libretro emulator so retroarch.cfg changes would have no effect - i suggest you revert that change.

                  https://retropie.org.uk/docs/MAME/#mame4all-pi explains configuring mame4all controls, however if you're using a pi2, you should be using lr-mame2003, which IS libretro and should be all working, as far as controls go. however you will need the appropriate romset - see https://retropie.org.uk/docs/Arcade/

                  @dankcushions : Thanks! I did everything you suggested and my dualshock PS4 controller is working fine now!
                  Thanks a lot, you made my day! :)

                  But I have another question now, if I may :) I tried to connect a second controller, wired via usb. It is a PS4 "pro" controller, the one of the newest PS4. It is working fine on emulationstation, even if the other one is connected, so I can use both on emulationstation but it does not work in the games.
                  I tried with 2 emulators, the mame one (lr-mame2003) and the snes.
                  I noticed that I have 2 configuration files, but the second one is .bak :
                  pi@retropie:/opt/retropie/configs/all/retroarch-joypads $ ls -l
                  total 8
                  -rw-r--r-- 1 pi pi 887 Sep 24 19:08 Sony Computer Entertainment Wireless Controller.cfg
                  -rw-r--r-- 1 pi pi 852 Sep 24 14:40 Sony Interactive Entertainment Wireless Controller.cfg.bak

                  Do you know if there is any additional configuration to do?

                  Thanks,
                  Francesca

                  dankcushions 1 Reply Last reply Reply Quote 0
                  • dankcushions
                    dankcushions Global Moderator @francegue last edited by

                    @francegue great! i'm not sure about your ps4 question, though. i think the problem may be that both controllers identify as the same thing, but have different configurations. that's only a guess, though. maybe you should ask in a new thread?

                    francegue 1 Reply Last reply Reply Quote 0
                    • francegue
                      francegue @dankcushions last edited by

                      @dankcushions . ok, I'll open a new thread. Thanks!

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post

                      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.