RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    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

    PPSSPP - Mapping Problem - Wireless Xbox controller

    Scheduled Pinned Locked Moved Help and Support
    xboxwirelesscontrollermappingppsspp
    17 Posts 5 Posters 9.9k Views
    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.
    • mituM
      mitu Global Moderator
      last edited by

      I think PPSSPP uses the SDL2 gamepad API to identify and map controller buttons - it may be worth trying to update it's mapping database.
      Grab the gamecontrollerdb.txt file from https://github.com/gabomdq/SDL_GameControllerDB and replace the file in /opt/retropie/emulators/ppsspp/assets with it, then try again and see if the gamepad is handled better.

      1 Reply Last reply Reply Quote 1
      • theinkT
        theink
        last edited by

        @mitu said in PPSSPP - Mapping Problem - Wireless Xbox controller:

        gamecontrollerdb.txt

        I tried replacing the file.
        Nothing changed.

        I did more testing. I noticed one more thing.
        While I'm on the menu and I push the Left Analog UP, I go down.
        When I press Left Analog UP DOWN I go up.
        Pushing Left and Right work as expected.

        Here is what PPSSPP registers on button press when I try to remap the controls to the XBOX360 controller.

        • Dpad Up - pressing UP does not register anything
        • Dpad Down - pressing DOWN does not register anything
        • Dpad Left - pressing Left registers as pad1.Up
        • Dpad Right - pressing Right registers as pad1.Down

        • O - Pressing B registers as pad1.b3
        • X - Pressing A registers as pad1.b2
        • [] - Pressing X registers as pad1.b4
        • Triangle - Pressing Y registers as pad1.b1

        • Start - Pressing Start registers as ThumbL
        • Select - Pressing Back registers as pad1.back

        • L - Pressing LT registers as pad1.b9
        • R - Pressing RT registers as pad1.10

        • Analog Up - Pressing X registers as pad1.Y Axis -
        • Analog Down - Pressing X registers as pad1.Y Axis +
        • Analog Left - Pressing X registers as pad1.X Axis -
        • Analog Right - Pressing X registers as pad1.X Axis +

        I had also updated the Xbox 360 controller driver.
        No change occurred.

        quicksilverQ 1 Reply Last reply Reply Quote 0
        • quicksilverQ
          quicksilver @theink
          last edited by quicksilver

          @theink try this

          Edit:
          /etc/modprobe.d/xpad.conf

          Change
          xpad triggers_to_buttons=1 to xpad triggers_to_buttons=0

          Then remap your controller in emulation station. Then try remapping in ppsspp. I had a similar situation where I couldn't get the xbox 360 right analog stick mapped in ppsspp. This fixed it for me.

          theinkT 1 Reply Last reply Reply Quote 1
          • theinkT
            theink @quicksilver
            last edited by

            @quicksilver said in PPSSPP - Mapping Problem - Wireless Xbox controller:

            modprobe

            Hi.
            I'm keen on trying that, but that file seems to be inaccessible through my network and I don't have Linux to browse the card.
            It seems to be something in PPSSPP that does not recognize the buttons correctly.

            quicksilverQ 1 Reply Last reply Reply Quote 0
            • quicksilverQ
              quicksilver @theink
              last edited by quicksilver

              @theink from emulationstation drop to the terminal (f4) and type

              sudo nano /etc/modprobe.d/xpad.conf
              

              That will allow you to edit that file. Make the change I suggested above then press cntrl-x. It will ask if you want to save the changes make sure you say yes. Then type emulationstation to go back to emulationstation. Remap your controller and try PPSSPP again. It's a possibility that PPSSPP isn't perceiving the controller correctly because of that above option.

              You can also try updating the xpad driver in retropie-setup.

              theinkT 1 Reply Last reply Reply Quote 1
              • theinkT
                theink @quicksilver
                last edited by theink

                @quicksilver
                Thank you.
                I will try that in the coming days. I don't have a wireless keyboard at hand :p


                I did a complete test of the Xbox360 controller inside PPSSPP.
                This is a list of the buttons I'm pressing and how PPSSPP recognizes them in the menu.


                Main Buttons
                Back - pad1.back
                Start - pad1.ThumbL
                X-Box - pad1.ThumbR


                Directional Pad
                Up - Don't Register!
                Down - Don't Register!
                Left - pad1.Up
                Right - pad1.Down


                Face Buttons
                A - pad1.b2
                B - pad1.B3
                X - pad1.b4
                Y - pad1.b1


                Left Analog
                L3 - pad1.Left
                Up - pad1.Y Axis -
                Down - pad1.Y Axis +
                Left - pad1.X Axis -
                Right - pad1.X Axis +


                Right Analog
                R3 - pad1.Right
                Up - pad1.Pressure -
                Down - pad1.Pressure +
                Left - Don't Register!
                Right - pad1.TouchMajor +


                Shoulder Buttons
                LB - pad1.b6
                LT - pad1.b9

                RB - pad1.b5
                RT - pad1.b10

                R 1 Reply Last reply Reply Quote 0
                • R
                  rodolfoaguilar @theink
                  last edited by

                  @theink Have you had any luck with this? I'm running into the same issue with a third-party wireless controller that I got from local Best Buy manufacturer. Weird thing is that it works well with the other platforms like SNES or GBA. First time I set it up, left analog joystick worked fine as well as A, B and Y but dpad, shoulders and X buttons didn't do anything Tried reconfiguring it on retropie setup screen and when I got back into PPSSPP this time dpad worked instead of left analog. Thank you

                  theinkT 1 Reply Last reply Reply Quote 0
                  • theinkT
                    theink @rodolfoaguilar
                    last edited by

                    @rodolfoaguilar
                    Hi.
                    I did not have time to research any further.
                    I can only guess what is causing the problem, but it is definitely something tied to ppsspp.

                    I guess that not enough people had stumbled on it yet. Hoping for an update from the retropie team working on ppsspp.

                    1 Reply Last reply Reply Quote 0
                    • F
                      Firebird_WS6
                      last edited by

                      I have exactly the same problem with a Raspberry Pi4 4Gb installed in a PiBoy DMG handheld game case. The D-Pad functions incorrectly in the same way as the OP.

                      1 Reply Last reply Reply Quote 0
                      • theinkT
                        theink
                        last edited by theink

                        @quicksilver
                        It had passed 4 months before I actually tried your fix proposal.
                        It worked. The X-box controller is now fully compatible. Thank you!

                        @rodolfoaguilar @Firebird_WS6
                        I'm summing up what quicksilver proposed.
                        This solution worked for me.

                        1. Plug in a Keyboard
                        2. While in Emulation Station press F4 to open the Terminal
                        3. Type
                        sudo nano /etc/modprobe.d/xpad.conf
                        
                        1. Change
                          xpad triggers_to_buttons=1 to xpad triggers_to_buttons=0
                        2. Press cntrl-x
                        3. Accept the changes.
                        4. Return back to Emulation Station by typing
                        emulationstation
                        
                        1. Restart Retropie.
                          (In my case, I noticed that the X-box controller had started acting strangely while in Emulation Station.
                          The D-pad buttons swapped positions in Emulation Station as they were previously in PPSSPP.)
                        2. Remap the controller in Emulation Station.
                        3. Remap the controller in PPSSPP if necessary.
                          (In my case, this was not needed.)

                        I'm not sure why this issue is affecting some people and not others.
                        Apparently, the problem is caused by the Trigger buttons somehow.

                        1 Reply Last reply Reply Quote 2
                        • 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.