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

Using spinner and trackball on Pi4 mame2003

Scheduled Pinned Locked Moved Help and Support
spinnertrackballpi 4
16 Posts 6 Posters 2.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.
  • Z
    zetof
    last edited by 13 Nov 2020, 08:43

    For me, arkanoid works with fbneo-libretro (with my spinner) :

    I put this in config :
    input_libretro_device_p1 = "773"
    input_player1_mouse_index = "2"

    (773 for "Mouse (ball only")

    Zetof

    1 Reply Last reply Reply Quote 0
    • C
      corminos @mahoneyt944
      last edited by 13 Nov 2020, 13:28

      @mahoneyt944

      I'm not sure which menu you're referring to. Could you please clarify?

      M 1 Reply Last reply 13 Nov 2020, 22:40 Reply Quote 0
      • M
        mahoneyt944 @corminos
        last edited by mahoneyt944 13 Nov 2020, 22:40

        @corminos the black and white mame menu
        You can activate it with tab on a keyboard or L3 on a retropad. Or there's a core option to turn it on in retroarch.

        C 1 Reply Last reply 15 Nov 2020, 16:14 Reply Quote 0
        • C
          corminos @mahoneyt944
          last edited by 15 Nov 2020, 16:14

          @mahoneyt944
          From that menu, I don't see any options for choosing the mouse index. I tried changing it from the retroarch menu, but that didn't seem to help either.

          It is like mame2003 doesn't even know about mouse1, but advanceMame does.

          C 1 Reply Last reply 17 Nov 2020, 09:26 Reply Quote 0
          • C
            Chupachups @corminos
            last edited by Chupachups 17 Nov 2020, 09:26

            @corminos if it can be useful, always connected to my RPI4, I have a transmitter key for wireless keyboard (with touchpad), a transmitter key for airmouse (for shooter games), a trackball and a steering wheel/spinner (mouse). In mame2003-plus I select index mouse 0-2-4-6 from retroarch input menu to choose which one to use. I would also like to set an index per game without having to change it every time.

            I try never to disconnect them, to avoid recognition problems (and reboots of mame2003-plus or Retropie).

            Everything works.
            And I use trackball and wheel-mouse (and arcade joystick) on a USB hub inside joystick.

            Mame2003 roms are ok with Mame2003-plus, so you can try with "plus" version.
            I use it because actually i don't see no more the input configuration in tab menu in mame2003 (I don't know if it's due to an update and if it's wanted).

            20201025_220117.jpg

            20201025_220238.jpg
            20201107_162730.jpg

            1 Reply Last reply Reply Quote 0
            • B
              bollwerk
              last edited by 17 Nov 2020, 23:09

              I was never able to get lr-mame2003 to work with a trackball or spinner, so I ended up using AdvanceMame. Maybe lr-mame2003plus will work better?

              C 1 Reply Last reply 18 Nov 2020, 07:10 Reply Quote 0
              • C
                Chupachups @bollwerk
                last edited by Chupachups 18 Nov 2020, 07:10

                Before switching to mame2003-plus it also worked for me on mame2003. I don't think it changes much.

                A year ago I had problems starting the mouse for first time.
                Then I found a line to add manually to a configuration file:

                on: \Opt\retropie\configs\all\retroarch-core-option.cfg

                i put: mame_current_mouse_enable = "enabled"

                I have now this line, and you?

                @corminos have you tried with index mouse=2 in retroarch input config? I use 0 or 2 or 4 or 6 for my peripherals with 2 axis each one. I understood that 0 and 1 was to use 2 axis (one for player) if you have 2 spinners

                C 1 Reply Last reply 18 Nov 2020, 08:31 Reply Quote 0
                • C
                  Chupachups @Chupachups
                  last edited by 18 Nov 2020, 08:31

                  2 spinner in 1 usb port, I meant

                  C 1 Reply Last reply 19 Nov 2020, 16:52 Reply Quote 0
                  • C
                    corminos @Chupachups
                    last edited by 19 Nov 2020, 16:52

                    @chupachups

                    Both the spinner and trackball are plugged directly into the pi, so the mouse index should not change.

                    I found out that even though using the mouse indexes from /dev/inputs/mouse(x), the trackball was 0 and the spinner was 1, to get the spinner to work in a game, I had to go into the retroarch menu and set the mouse index to 2.

                    But I believe that the retroarch config is for all games, and not specific ones. I then read that I could override that by adding a file in the /configs/all/retroarch/config/MAME 2003/tron.cfg.
                    In there I put in
                    input_player1_mouse_index = "2"

                    But that didn't work either. But at least by using the mouse index of 2, I can get it somewhat working.

                    This video got me pretty far, even though he is using Mame 2010:

                    I'm going to try the suggestions for mame2003plus

                    Y C 2 Replies Last reply 19 Nov 2020, 16:59 Reply Quote 0
                    • Y
                      YFZdude @corminos
                      last edited by YFZdude 19 Nov 2020, 16:59

                      @corminos said in Using spinner and trackball on Pi4 mame2003:

                      But I believe that the retroarch config is for all games, and not specific ones. I then read that I could override that by adding a file in the /configs/all/retroarch/config/MAME 2003/tron.cfg.

                      I've usually found that the best way to create the overrides (or remaps depending on which you need) is to use the RetroArch menu to save the override/remap file. It will place it and name it correctly for you.

                      I think for controls changes you probably need to save a game remap file rather than a game override file. Both overrides and remaps can be create per "core" or per ROM. In this case "core" would refer to the system (MAME, NES, Atari, etc.)

                      https://retropie.org.uk/docs/RetroArch-Configuration/#core-input-remapping
                      This should be helpful but the instructions are for core rather than game remap. Adjust accordingly.

                      1 Reply Last reply Reply Quote 0
                      • C
                        Chupachups @corminos
                        last edited by Chupachups 19 Nov 2020, 18:49

                        @corminos said in Using spinner and trackball on Pi4 mame2003:

                        ...using the mouse indexes from /dev/inputs/mouse(x), the trackball was 0 and the spinner was 1....

                        I think is practically the device number

                        ... to get the spinner to work in a game, I had to go into the retroarch menu and set the mouse index to 2....

                        I think is the axis number (if you have 3 mouse connected, you have 6 axis avaiable, from 0 to 5)

                        I am also interested in saving the correct mouse index for each mame2003 game.
                        But with override/mapping for game/core it's not very simple for noobs. For a game in lr-Flycast I was saving configuration in every way and every time time was always different from what I wanted!

                        I'll retry with YFZdude advice (although i don't know if remap game file also saves reatroarch mouse index number)

                        C 1 Reply Last reply 20 Nov 2020, 18:33 Reply Quote 0
                        • C
                          Chupachups @Chupachups
                          last edited by Chupachups 20 Nov 2020, 18:33

                          I have try with Quick Menu>Option and Quick menu>controls to create "game option file" and also save "remap game file" , without success.
                          I try 2 games, one with index mouse 4 (my mouse-whell) and one with index mouse 6 (my trackball).
                          Index mouse number not saved for each game. :(

                          However the index mouse number isn't in quick option menu (only other controls for each player=buttons).

                          I must set it every time i close one and launch the other.

                          PS: in quick menu>option there is the option for share the 2 axes of a mouse and create 2 spinners with just ONE usb mouse (and use mouse index 0 for player1 and mouse index 1 for player2)

                          Y 1 Reply Last reply 20 Nov 2020, 23:20 Reply Quote 0
                          • Y
                            YFZdude @Chupachups
                            last edited by YFZdude 20 Nov 2020, 23:20

                            @chupachups
                            I could not remember which of the two screens contained the mouse axis. I think my suggestion for remaps would only apply to items in the Quick Menu -> Controls. Since the mouse axis isn't in there it must be the override that is supposed to save it.

                            I think there have been reports of some settings not saving correctly as expected. I read someone was able to save settings by opening the retroarch menu from within Emulation Station and therefore no ROM was loaded. Might be worth a try if you haven't already.

                            EDIT: I can confirm that neither overrides nor remaps will save a mouse index setting for me either.

                            1 Reply Last reply Reply Quote 0
                            16 out of 16
                            • First post
                              16/16
                              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.

                              This community forum collects and processes your personal information.
                              consent.not_received