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

    Xboxdrv mapping (Nes30Pro), UAE4arm, mouse and joystick

    Scheduled Pinned Locked Moved Help and Support
    xboxdrvuae4armnes30proamigamouse
    16 Posts 2 Posters 5.4k 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.
    • I
      i8allUrPi
      last edited by

      Strange, I don't have that line, or any line relating to a specific controller. I wonder if it's hard coded to just choose the first joystick available.

      Presumably as it's a configuration setting created in the newer version it makes sense that it won't be in the configuration file.

      More hunting.

      Life would be easy if that were the case, if it were possible to swap the event numbers (maintaining the mapping). I doubt it's that easy though.

      1 Reply Last reply Reply Quote 0
      • I
        i8allUrPi
        last edited by i8allUrPi

        I may have found it...

        /opt/retropie/emulators/uar4arm/conf/uaeconfig.uae contains lines relating to joysticks.

        Just going to back up and experiment.

        1 Reply Last reply Reply Quote 0
        • I
          i8allUrPi
          last edited by

          No dice...

          These lines gave me hope:
          joyport0=mouse
          joyport0autofire=none
          joyport1=joy1
          joyport1autofire=none
          joyport1mode=djoy

          Scrolled to find:
          input.1.joystick.0.friendlyname=dPad as joystick
          input.1.joystick.0.name=JOY0
          input.1.joystick.0.empty=true
          input.1.joystick.0.disabled=false
          input.1.joystick.1.friendlyname=8Bitdo NES30 Pro
          input.1.joystick.1.name=JOY1
          input.1.joystick.1.empty=true
          input.1.joystick.1.disabled=false

          Which led me to believe it was definitely looking for the other instance.

          Changed that line to my new friendly name:
          NES30 Pro (xboxdrv)

          And.... same as before.

          Mouse and keyboard mapping works. No fire button to begin game.

          Going to carry on looking through the config to see if there are additional settings.

          (btw, what do I wrap the code above in so it's not inline? - sorry for poor formatting)

          mediamogulM 1 Reply Last reply Reply Quote 0
          • I
            i8allUrPi
            last edited by

            Ok, reached the bottom of the file - there were 2 more instances input.2., input.3. so changed them and tested...

            No joy (no pun either)

            Now, I don't know if it's related, but...

            When I edited "+Start ScummVM" as per the method closer to the top of the wiki, it seemed that it was ignoring the configuration that was already there.

            All my previously added games were not in the list, the graphic mode had reset to default and any games I did add, did not appear as .svm files in the scummvm directory, nor were they added to the emulation station menu under ScummVM (the old ones I'd previously added were there and still launched).

            I worked around this by commenting out everything I'd added... mass adding all my ScummVM games, then uncommenting, relaunching, then finally mass adding again so they all appeared in the GUI too.

            Could it be that somehow xboxdrv is losing the config file somewhere? Or maybe there's a config file lurking somewhere else in the filesystem that it has created?

            1 Reply Last reply Reply Quote 0
            • I
              i8allUrPi
              last edited by

              In fact, I'm pretty sure this is the case, as I'd saved over the default config with speedball 2 in the drive (that's still present in /opt/retropie/emulators/uae4arm/conf/uaeconfig.uae) but it's not in the drive when launched from +Start Uae4arm

              1 Reply Last reply Reply Quote 0
              • I
                i8allUrPi
                last edited by

                Going to back up my changes, revert back then try the onstart method further down the wiki and see if that makes a difference.

                1 Reply Last reply Reply Quote 0
                • mediamogulM
                  mediamogul Global Moderator @i8allUrPi
                  last edited by mediamogul

                  @i8allUrPi said in Xboxdrv mapping (Nes30Pro), UAE4arm, mouse and joystick:

                  btw, what do I wrap the code above in so it's not inline? - sorry for poor formatting

                  Three backticks ``` on either side.

                  Going to back up my changes, revert back then try the onstart method further down the wiki

                  You might also try using the simplified method for launching xboxdrv that is detailed here.

                  Edit: You would of course change "sorr" to "amiga" and add your own xboxdrv configuration.

                  RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                  1 Reply Last reply Reply Quote 0
                  • I
                    i8allUrPi
                    last edited by

                    Thank you - going to take a break for a couple of hours then get back to it.

                    1 Reply Last reply Reply Quote 0
                    • I
                      i8allUrPi
                      last edited by

                      Ok, decided to bite the bullet and update UAE4arm, it works exactly as it should with your mappings and now I can launch ADFs, exit, use mouse, some keyboard keys and joystick all from the controller.

                      Thank you.

                      This did of course break the WHDLoad (loading games straight from the emulation station menu) functionality - but, I'll retrace my steps and see if I can fix that myself.

                      I really appreciate your time and effort.

                      I used the onstart method with 'case's - very neat solution.

                      mediamogulM 1 Reply Last reply Reply Quote 1
                      • mediamogulM
                        mediamogul Global Moderator @i8allUrPi
                        last edited by mediamogul

                        @i8allUrPi

                        I really appreciate your time and effort.

                        Not a problem. I'm glad it all worked out.

                        RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                        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.