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

    Trackball & Spinner unresponsive in MAME2003

    Scheduled Pinned Locked Moved Help and Support
    mame2003spinnerspinner usbtrackballtrackball usb
    42 Posts 4 Posters 4.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.
    • G
      Grand_National
      last edited by BuZz

      Hi. I'm very new to Retropie, so please bear with me. I've tried to answer all of the questions as best I could.

      Pi Model or other hardware: 3B
      Power Supply used: (dedicated/switched)
      RetroPie Version Used (how do I tell this?):
      Built From: (Linux 4.1.19-v7+ armv7l GNU/Linux - Retropie/Emulation Station v2.0.1A)
      USB Devices connected: Dell wired kbd "Dell_DEL_USB_Keyboard", MicroCenter Atari 2 player fight stick with trackball "Xinmotek_Controller" and "mouse", Microcenter Atari spinner "Baolian_industry_Co.__Ltd._BL_button_spinner
      Controller used: all above
      Error messages received: none
      Verbose log (if relevant): unable to seem to get this --verbose isn't listed as an option for me, so I can't get a /dev/shm/runcommand.log
      Guide used: (beginners guide on website)
      Emulator: (Emulation Station/MAME 2003)
      How to replicate the problem: Launch Missile Command or Tempest and trackball and spinner do not move cursor, but joystick does

      I bought and I'm trying to get my MC "2 Player USB FightStick with Trackball" (USB) and "Arcade Spinner" (USB) working with Retropie and MAME2003. I'm using a Retropie EmulationStation on a pi3B.
      I've spent several days reading Retropie and other forums, MC tech docs, and watching various Youtube videos on how to get MAME2003 work with a trackball and a spinner before I decided to make this post.
      Starting from the lowest level I know of.....
      If I do a cd /dev/input and ls -al, I see
      mice
      mouse0
      mouse1
      if I do a cat mouse0 and cat mouse1, I get characters on the screen from both devices, so I know at the hardware level and basic IO, they are working.
      To get the exact names of the controllers, I did a cd /dev/input/by-id/

      Both the trackball and the spinner work with KODI as an app test.

      ES states 1 Gamepad detected
      I cannot get the trackball and spinner to work with MAME2003. The games run, but there is no input from either the trackball or spinner. Joystick and buttons work fine in these and other games.

      I've added usbhid: mousepoll=1 and usbhid.quirks=0x16c0:0x05e1:0x040 to cmdline.txt which is something the controller manufacturer suggested apparently to get the second player controller working - no difference

      I've added input_player1_mouse_index = “2” and config_save_on_exit = false to two new <filename>.cfg files in the rom folder, which is what the MC online docs suggest- no difference

      I've added these lines to retropie.local\configs\all\retroarch-core-options.cfg
      mame_mouse_enable = "enabled"
      mame_current_mouse_enable = "enabled"
      mame2003-mame_current_mouse_enable = "enabled"
      mame2010-mame_current_mouse_enable = "enabled"
      which I've picked up from other forums and youtube videos - no difference

      I understand my version of Retroarch (2016 build date - I haven't touched this pi in years) should be new enough to support mice in MAME2003.

      I'm open to ALL suggestions.
      Thanks in advance!

      M 1 Reply Last reply Reply Quote 0
      • M
        mahoneyt944 @Grand_National
        last edited by mahoneyt944

        @grand_national try going into the mame menu, under "input this game" and map the track ball X and Y. Sounds like it's mapped to the joystick right now. To setup the trackball for more trackball games, go into "input general" then find the trackball x and y and set them there. You can also do this for spinners and all your other devices.

        G 1 Reply Last reply Reply Quote 0
        • G
          Grand_National @mahoneyt944
          last edited by Grand_National

          @mahoneyt944:
          Thank you for your reply!

          I think I've tried this but I'm not sure how to do it properly.
          If I launch a game and get into setup for this game, I see options for:

          Track X: LEFT or RetroPad 1 Left
          Track X: RIGHT or Retropad1 Right
          Track Y: UP or Retropad1 Up
          Track Y: DOWN or Retropad1 Down
          Track X2: d or RetroPad2 Left
          Track X2: g or Retropad2 Right
          Track Y2: r or Retropad2 Up
          Track Y2: or Retropad2 Down

          If I go to Track X for example and set it to input mode and spin the trackball to the left, it changes to Retropad1 Left, but returning to the game, the trackball does not move the cursor, but the joystick left still does. What value should this change to normally if the trackball is spun left?....or is this not the proper way to set up the trackball and spinner?

          I've read elsewhere that when I move the Trackball horizontally, for example, (the value should come up as "Mouse X" or "Mouse 1 X" or "Mouse 2 X"), but it doesn't. The games don't seem to be recognizing that there is a mouse/trackball/spinner present.

          What am I missing?
          Thanks in advance for any reply you may have.

          1 Reply Last reply Reply Quote 0
          • M
            mahoneyt944
            last edited by mahoneyt944

            Load the core first. If you go into retroarch, quick menu, options, what is the "mouse device" setting?

            G 1 Reply Last reply Reply Quote 0
            • G
              Grand_National @mahoneyt944
              last edited by

              @mahoneyt944

              Thank you, but this is actually the part I'm weakest on. I can get to the prompt to type in commands and I can get into the game and change the settings there, but I'm not familiar with what you wrote (the middle layer? Retroarch).

              Please bear with me, how do I do these steps? How do I get into just Retroarch rather than ES?

              "Load the core first. If you go into retroarch, quick menu, options"

              Thanks in advance for your patience.

              G 1 Reply Last reply Reply Quote 0
              • G
                Grand_National @Grand_National
                last edited by

                @grand_national

                G 1 Reply Last reply Reply Quote 0
                • G
                  Grand_National @Grand_National
                  last edited by Grand_National

                  @grand_national

                  Please bear with me.....

                  If I'm in a game, I hit Select+X and I get a Setting Menu.
                  At the bottom it shows 1.3.2 - MAME 2003 0.78
                  Is this it?

                  I don't see Options as a choice though.
                  Is my Retroarch too old?

                  I can get into 1_INPUT_BINDS_LIST but I don't see anything about a mouse
                  ...or are you referring to something else?

                  Thanks in advance.

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    mahoneyt944 @Grand_National
                    last edited by mahoneyt944

                    @grand_national from the select+ x menu. Choose quick menu, then options.

                    G 1 Reply Last reply Reply Quote 0
                    • G
                      Grand_National @mahoneyt944
                      last edited by Grand_National

                      @mahoneyt944
                      Ok
                      I'm in the game and hit Select+x and I get into the retroarch menu.
                      Quick Menu isn't an option, but Menu is.
                      If I go into Menu, I don't see Mouse Device, but I do see an option for Mouse Support which was turned off.
                      I turned it ON, and returned to the game, but the trackball and spinner still are not operational.
                      I saved the config and restarted Emulation Station, but still no mouse suport.

                      1 Reply Last reply Reply Quote 0
                      • M
                        mahoneyt944
                        last edited by mahoneyt944

                        Once you press select+ x and the retroarch menu opens, press b a few times to back up to it's main menu, this screen will have the option for quick menu. Then options, then mouse device.

                        G 1 Reply Last reply Reply Quote 0
                        • G
                          Grand_National @mahoneyt944
                          last edited by Grand_National

                          @mahoneyt944
                          Thank you.
                          QUICK MENU:

                          • Resume Content
                          • Restart Content
                          • Close Content
                          • Take Screenshot
                          • State Slot
                          • Save State
                          • Load State
                          • Core Options
                            • Frameskip
                            • MK2/MK3 DCS Speedhack
                            • Skip Disclaimer
                          • Core Cheat Options
                            • Cheat File Load
                            • Cheat File Save As
                            • Cheat Passes
                            • Apply Cheat Passes
                          • Shader Option
                            • Apply Share Changes
                            • Load Shader Preset
                            • Shader Preset Save As
                            • Preview Shader Parameters
                            • Menu Shader Parameters
                            • Shader Passes
                          • 1.3.2 - MAME 2003 0.78

                          Sorry, but I don't see just Options nor Mouse Device anywhere.

                          1 Reply Last reply Reply Quote 0
                          • M
                            mahoneyt944
                            last edited by mahoneyt944

                            @grand_national your version of retroarch and mame2003 is probably too old. Go into retropie setup, manage packages, core packages, retroarch, then update retroarch from binary.

                            Then go into retropie setup, manage packages, main packages, mame2003, then update mame2003 from source. This takes about 25 mins or so. But will give you the newest working version available.

                            G 1 Reply Last reply Reply Quote 0
                            • G
                              Grand_National @mahoneyt944
                              last edited by Grand_National

                              @mahoneyt944
                              Thank you

                              The menu options were a bit different, bu I think I found everything.

                              RetroPie Config | RETROPIE-SETUP
                              Version: 4.0-rc1
                              Last Commit: 4 years, 5 months ago (da1b49e)

                              -(note: I've also tried using the updating the Retropie Setup script before running the retropie update - same results)

                              -P Manage Packages
                              --core Manage core packages
                              ---129 retroarch (Installed)
                              ----B Update from binary
                              (lots of text scrolled by - I saw 1 error briefly which scrolled by too fast to read ..."idPlatform command not found")- but it returned me to the menu)
                              The retropie update seemed to work?!?
                              -(note even after reboot though, this commit time about remained the same - should this change?)

                              The mame2003, did not go as well.

                              RetroPie | RETROPIE-SETUP

                              After about 25 minutes like you said, if came back with a message. "Could not successfully install Arcade emu - MAME 0.78 port for libretro (/home/pi/RetroPie-Setup/tmp/build/lr-mame2003/change.txt not found). Please see /home/pi/RetroPie-Setup/logs/rps-2021-01-03_211825.log.gz for more in depth information regarding the errors."

                              (note: I have confirmed that this change.txt does not exist.)
                              I do not know how to view these logs, nor exactly what to look for.

                              Currently nothing for mame2003 (or possibly any other emulator) will launch - (I tested with mame2003 and Atari2600). Screen goes black, message appears, "Powering on HDMI with preferred settings", screen goes black, and then then same HDMI message appears again, and it returns to game list. (This is identical behavior I had previously when trying to run the wrong ROM versions.)

                              When I try to access the pi through Windows Explorer to navigate to the log and ensure the ROMs are still present, I can no longer get in and I receive the message "retropie.local is not accessible"
                              (note: my connection is hardwired)

                              (Sorry this is being so difficult.)

                              Thanks in advance.

                              M 1 Reply Last reply Reply Quote 0
                              • M
                                mahoneyt944 @Grand_National
                                last edited by

                                @grand_national hmmm well I feel like we're trying to dance around the old setup you have but, you might try uninstalling mame2003. Then restart your pi. Then install mame2003 from binary this time.

                                G 1 Reply Last reply Reply Quote 0
                                • G
                                  Grand_National @mahoneyt944
                                  last edited by

                                  @mahoneyt944
                                  I was trying to dump the logs and get stuck because I had so much test scrolling by and didn't know how to exit.

                                  I ended up turning of the pi and restarting it. I think my Retropie option is not different. Its not called RetroPie Config - and if I launch it, the menu seems much more updated.

                                  Let me try the mame2003 stuff now.

                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    mahoneyt944
                                    last edited by mahoneyt944

                                    @grand_national here's some googled photos where to update properly at. Retropie setup -> manage packages -> main packages -> lr-mame2003 - update or install from binary
                                    retropie setup

                                    manage packages

                                    G 1 Reply Last reply Reply Quote 0
                                    • G
                                      Grand_National @mahoneyt944
                                      last edited by Grand_National

                                      @mahoneyt944

                                      My retropie config screen looks similar to your screenshot except the menu is on the right of the joystick graphic, rather than the left.

                                      Uninstalled 2003 - states it was uninstalled
                                      rebooted
                                      Reinstalled 2003 - states its installed
                                      But still no Mame games will run.

                                      note: roms still exist in the arcade folder.

                                      note: as another observation, one of the options of the retropie config menu is to run "retroarch" (I believe this is the GUI). If I do that though, I get 2 messages - the second is
                                      "...bin/retroarch" error while loading shared libraries: libbrcmEGL.so: cannot open sharedobject file: No such file...."
                                      and the retroarch GUI never launches...

                                      Thanks in advance

                                      dankcushionsD 1 Reply Last reply Reply Quote 0
                                      • M
                                        mahoneyt944
                                        last edited by mahoneyt944

                                        @grand_national when you go to launch a mame rom there should be a launch box where you can press "a" to enter the setup. Here you can set the default emulator to lr-mame2003. Image example
                                        default

                                        If your roms are in the arcade folder it will say arcade instead.

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

                                          @grand_national i think it's time to start again. you're running raspbian jessie, which is no-longer supported.

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

                                            @dankcushions
                                            Thanks
                                            I downloaded a complete image from this site, so I'm now running the latest version of everything (I think).
                                            The good news is the trackball and the spinner actually now work in the games!!!
                                            Thanks for your help!
                                            I do have 2 nagging issues which I didn't have previously and I'm sure they are simple fixes, but I'm not sure where to find the settings.

                                            1. Tempest is rotated 90 degrees counterclockwise. Everything I've read states MAME should auto-adjust for this, but it's not and I can't seem to find the correct setting to fix it. When I look at some Youtube videos for this they are going into Dial Settings, which I can't find.
                                            2. I'm looking to adjust the sensitivity of the trackback and spinner, but with everything (menus) being so new (and somewhat unfamiliar), I can't seem to find the input control settings to do this.
                                              Can you please point me in the right direction?
                                              Thanks in advance.
                                            dankcushionsD 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.