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

    Mame4All swap x/y axis

    Scheduled Pinned Locked Moved Help and Support
    mame4allmame4allconfigretroarch.cfgtrackball
    12 Posts 3 Posters 3.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.
    • S
      Sokratz
      last edited by

      All I'm running RetroPie 4.1 on a Pi3. I have a USB trackball that is working correctly EXCEPT that the x and y axis's need to be swapped.

      For AdvMame it's easy enough in the config file to just map them opposite. However, in Mame4All (which some of my roms require) I can't figure out how to do it. That ROM run fine except when I roll the track ball up (+y) the cursor moves right (-x). So if I can remap the axis's for x and y everything should be ok.

      The game menu does not provide an option to swap x and y so I started playing around with the retroarch.cfg but it's not obvious what to do there either. I haven't found any retroarch.cfg file command pages anywhere to find out if there are any options.

      Any ideas?

      Thanks for your help!!

      rbakerR 1 Reply Last reply Reply Quote 0
      • rbakerR
        rbaker @Sokratz
        last edited by

        @Sokratz You should use lr-mame2003 or the versatile Advance MAME. These are the best choices for what you are trying to do:
        https://github.com/retropie/retropie-setup/wiki/Spinners-and-Trackballs#configuring-emulators

        S 1 Reply Last reply Reply Quote 0
        • S
          Sokratz @rbaker
          last edited by

          Thanks for the quick reply, @rbaker ...

          I have AdvMame working great and it's definitely the most versatile when it comes to configuration. However, there are a handful of ROM's that I have that won't work with AdvMame but do work with Mame4All. I have the same problem with lr-mame2003 with needing to swap the x and y axis. Both use retroarch.cfg, I believe.

          Of course the root of this problem is that my trackball is mounted 90 degrees off. That would be a difficult control panel change that I'd rather not do. It was an easy software fix in AdvMame and I'm hoping for a similar software fix for Mame4All.

          Thanks

          rbakerR 1 Reply Last reply Reply Quote 0
          • rbakerR
            rbaker @Sokratz
            last edited by

            @Sokratz Which games only work in Mame4ALL?

            S 1 Reply Last reply Reply Quote 0
            • S
              Sokratz @rbaker
              last edited by

              @rbaker
              There's three ROM's. Missile Command, Marble Madness, and Tron. That don't seem to work under AdvMame - at least the ROM versions that I have.

              rbakerR 1 Reply Last reply Reply Quote 0
              • rbakerR
                rbaker @Sokratz
                last edited by

                @Sokratz said in Mame4All swap x/y axis:

                at least the ROM versions that I have

                What versions of these roms are you trying to run in this emulator? You cannot expect roms that are compatible with Mame4all to work in other emulators. They might. But more likely they might not. There is no way of knowing. If you are downloading single roms from random sites, there is no way of knowing the version. You are better obtaining a full reference set for the emulator of your choice.

                S 1 Reply Last reply Reply Quote 0
                • S
                  Sokratz @rbaker
                  last edited by

                  @rbaker
                  I have the 106 rom set and the above games are noted not to work with AdvMame 1.4. (I regularly contribute to the list of which 106 roms work with AdvMame 1.4) I could go look for other rom versions that work with AdvMame 1.4 as a possible solution to this problem but my thought was to stick with the 106 rom set and use an emulator that does work with them - Mame4All. But if I can't swap the x/y axis I'll have to go look for another rom. Sounds like that's probably the easiest solution in this case.

                  rbakerR 1 Reply Last reply Reply Quote 0
                  • rbakerR
                    rbaker @Sokratz
                    last edited by

                    @Sokratz Why do you think Mame4All works with 106?
                    https://github.com/retropie/retropie-setup/wiki/Managing-ROMs

                    1 Reply Last reply Reply Quote 0
                    • S
                      Sokratz
                      last edited by

                      I don't have any expectations that ALL roms in the 106 package will work with Mame4All which is why I run AdvMame 1.4 for 99% of the ROM's I use. However, there are "some" that do work in Mame4All that do not work in AdvMame - inculcating the ones listed in this thread.

                      My question is really about being able to configure the inputs in Mame4All. I haven't been able to find a reference guide for all of the configuration options available in the retroarch.cfg file (which I think is the config file for Mame4All). I'm hoping there's a config parameter that will let me switch x & y axis's for the Trackball/Mouse.

                      Thanks for all of the notes and trying to help!

                      rbakerR caver01C 2 Replies Last reply Reply Quote 0
                      • rbakerR
                        rbaker @Sokratz
                        last edited by

                        @Sokratz Try here: https://github.com/RetroPie/mame4all-pi It's so old that it's really limited, maybe @caver01 can suggest the trackball solution?

                        1 Reply Last reply Reply Quote 0
                        • caver01C
                          caver01 @Sokratz
                          last edited by

                          @Sokratz Oh boy, I really don't think there is a way to swap the x and y in lr-mame2003. You can use the in game GUI to invert the direction, but not trade input axes. This is part of what makes AdvMAME so nice--the ability to 'matrix' the analog inputs however you like.

                          Depending on your interface (hardware) what about swapping the wiring around such that the signals from the X goes to Y and vice versa? Then, reversing what you have done in AdvMAME would be necessary (but trivial) and you would be fixed for anything going forward.

                          For what you want, I think @dankcushions would have to program an x/y swap core option, and then, even if he did so, it would only be available in lr-mame2003, not mame4all.

                          What about AdvMAME.94?

                          My 4-player cocktail style cabinet built as a custom "roadcase"

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            Sokratz @caver01
                            last edited by

                            @caver01
                            The 106 roms in question don't work in AdvMame .94 either :-(

                            Good idea about switching the wires on the trackball. I'll take a look and see if it's an easy fix - then it will be right for everything going forward. Thanks for the idea!

                            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.