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

    mupen64plus-glide64 - BT XBOX series X - incorrect controls

    Scheduled Pinned Locked Moved Help and Support
    xbox series xgamepadcontrolsmupen64plusbluetooth
    13 Posts 2 Posters 533 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.
    • A
      Arrafart
      last edited by Arrafart

      Dietpi OS v9.8.0 Armv8 Debian GNU/Linux 12 Bookworm
      Device model : Orange Pi Zero 2W (aarch64)

      Mupen64plus

      Xbox BT Controls are not doing what /opt/retropie/configs/n64/mupen64plus.cfg is showing for 2 similar controllers, with and without remapping.

      4 controllers tested, non-XBOX works as intended
      https://pastebin.com/W3HRtFiH

      Also /opt/retropie/configs/n64/InputAutoCfg.ini is also correctly set up.
      https://pastebin.com/2S4EbmcR

      Where else can i look?

      A 1 Reply Last reply Reply Quote 0
      • A
        Arrafart @Arrafart
        last edited by Arrafart

        I replicated the issue....
        The issue starts when installing moonlight-qt

        Anyone an idea what could cause this?

        curl -1sLf 'https://dl.cloudsmith.io/public/moonlight-game-streaming/moonlight-qt/setup.deb.sh' | sudo -E bash
        sudo apt install moonlight-qt

        mituM 1 Reply Last reply Reply Quote 0
        • mituM
          mitu Global Moderator @Arrafart
          last edited by mitu

          @Arrafart said in mupen64plus-glide64 - BT XBOX series X - incorrect controls:

          Anyone an idea what could cause this?

          Unlikely the installation of an unrelated program has affected the Mupen64 mapping and only for the Xbox controllers.
          More likely you have some scripts running that perform 'remapping' and they're affecting how the Mupen64plus configuration is run. By default, RetroPie will read the RetroArch mappings for a gamepad and apply them automatically to Mupen64plus (the standalong emulator). You can check in the log file (/dev/shm/runcommand.log) to see what the emulator detects as far as the input controllers are concerned.

          Btw, your paste links don't work.

          A 1 Reply Last reply Reply Quote 0
          • A
            Arrafart @mitu
            last edited by

            @mitu said in mupen64plus-glide64 - BT XBOX series X - incorrect controls:

            Unlikely the installation of an unrelated program has affected the Mupen64 mapping and only for the Xbox controllers.
            More likely you have some scripts running that perform 'remapping' and they're affecting how the Mupen64plus configuration is run. By default, RetroPie will read the RetroArch mappings for a gamepad and apply them automatically to Mupen64plus (the standalong emulator). You can check in the log file (/dev/shm/runcommand.log) to see what the emulator detects as far as the input controllers are concerned.

            Btw, your paste links don't work.

            Fixed the links above. silly alternative pastebin website...

            log with incorrect controls. It says something about VRU?

            https://pastebin.com/HXUkidM5 Runcommand.log

            Also interesting, mupen64plus.cfg below, J0B6/B7 does not work to exit the game in this setup like it usually does.
            Seems like the xbox controller itself gets remapped?

            https://pastebin.com/h0hvzbmj

            PS: Played Destiny 2 via Moonlight yesterday, no issues with controls.

            1 Reply Last reply Reply Quote 0
            • mituM
              mitu Global Moderator
              last edited by mitu

              The run logs show that the mapping is loaded, though with a couple of some warnings for the rumble/mempack switching buttons.
              You haven't explained what exactly is working and what is not. Assuming you manually added the mapping - what did you expect to happen and what's actually happening ?

              A good way to test your mapping is to use one of the N64 homebrew testing roms (see here) since some of them are particularly geared towards testing the controller.

              A 1 Reply Last reply Reply Quote 0
              • A
                Arrafart @mitu
                last edited by

                @mitu said in mupen64plus-glide64 - BT XBOX series X - incorrect controls:

                A good way to test your mapping is to use one of the N64 homebrew testing roms (see here) since some of them are particularly geared towards testing the controller.

                Thank you, I'll check it soon.

                About the mapping issue, link:

                https://retropie.org.uk/forum/post/301693

                I applied this manual remapping after a clean install. It works perfectly for all N64-games and controllers; Xbox series x Bluetooth, Xbox 360 wired and the cheap stuff.

                After I installed Moonlight-qt, something in this package overwrites BT controls or Xbox controls that affects Retropie controls. Jstest didn't change and moonlight controls works great.

                • I will try the link
                • I will triple check that the issue is caused by something during the moonlight installation.
                • I can compare the controls, before and after, with the same BT controllers, but wired.
                • I can check an lr-n64 emulation game with the BT controller to see if RetroArch has similar issues.
                mituM 1 Reply Last reply Reply Quote 0
                • mituM
                  mitu Global Moderator @Arrafart
                  last edited by

                  @Arrafart said in mupen64plus-glide64 - BT XBOX series X - incorrect controls:

                  After I installed Moonlight-qt, something in this package overwrites BT controls or Xbox controls that affects Retropie controls ...

                  You still haven't specifiied what does the 'affects' means - is the gamepad not working at all or some buttons are switch/re-arranged/etc. When you're talking about RetroPie controls, does this mean that the EmulationStation is also affected ?

                  About the mapping issue, link: https://retropie.org.uk/forum/post/301693

                  Ok, so - as I assumed - you're not using the 'standard' RetroPie auto-mapping script, but you overwrite the mappings with own.

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    Arrafart @mitu
                    last edited by Arrafart

                    @mitu said in mupen64plus-glide64 - BT XBOX series X - incorrect controls:

                    @Arrafart said in mupen64plus-glide64 - BT XBOX series X - incorrect controls:
                    You still haven't specifiied what does the 'affects' means - is the gamepad not working at all or some buttons are switch/re-arranged/etc. When you're talking about RetroPie controls, does this mean that the EmulationStation is also affected ?

                    In wipeout 64, (I'll check another game with more controls)
                    Buttons are re-arranged, I press hat up to use the start function, however some of the buttons are nowhere to be found. Such as L(6) and R(7), B(3). Xaxis and Yaxis are fine.

                    Ok, so - as I assumed - you're not using the 'standard' RetroPie auto-mapping script, but you overwrite the mappings with own.

                    Yes, picked up from... /mupen64plus/remaps

                    1 Reply Last reply Reply Quote 0
                    • A
                      Arrafart
                      last edited by

                      Info from the Moonlight-qt discord support

                      Well moonlight depends on sdl2 and upgrading that might mess with the gamecontrollerdb.txt in retropie if it's not the default? Moonlight itself just loads it from its own ~/.cache, so restoring the db file after installing moonlight might fix your emulators and if moonlight is having button issues, putting the working one in moonlights cache may even fix those.

                      mituM 1 Reply Last reply Reply Quote 0
                      • mituM
                        mitu Global Moderator @Arrafart
                        last edited by

                        @Arrafart ok, I don't understand why would this affect Mupen64plus, but you do what you want with that info I guess.

                        A 1 Reply Last reply Reply Quote 0
                        • A
                          Arrafart @mitu
                          last edited by

                          @mitu

                          I've triple checked.

                          Before installing moonlight-qt BT Xbox series x controller Mupen64plus works great, with or without remapping.

                          Something happens to the Bluetooth setup connected to only Mupen64plus when installing moonlight-qt. All the buttons swap pretty randomly.

                          • I think the issue is not RetroArch related. The Bluetooth acts properly with other RetroArch emulation, SNES and PSX. (Couldn't get lr-mupen64plus-next to work, but should work the same)(Reinstalling RetroArch with OPI Zero 2w system.sh file updated, anyway)
                          • Wired, the series x controller acts like an Xbox 360 controller, as it should. And has no issues within Mupen64plus.

                          Couldn't get any testing running under the link. Don't know what to look for. I tried a few links and it didn't start anything, one GitHub had a main.z64 rom which crashed Retropie.

                          Any ideas? 🤔

                          1 Reply Last reply Reply Quote 0
                          • A
                            Arrafart
                            last edited by

                            I removed Moonlight-qt and controls are back to normal

                            uninstallated packages:

                            https://pastebin.com/RpTMBJX9

                            1 Reply Last reply Reply Quote 0
                            • A
                              Arrafart
                              last edited by

                              @mitu

                              FYI, solved with help from the moonlight team.

                              https://github.com/moonlight-stream/moonlight-qt/issues/1563#issuecomment-2774382989

                              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.