RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Multiple mice support in RetroArch cores (lightguns, spinners, trackballs)

    Scheduled Pinned Locked Moved Ideas and Development
    micelightgunspinnersteering wheelmame
    179 Posts 14 Posters 69.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.
    • markwkiddM
      markwkidd @space invader
      last edited by

      @space-invader said in Multiple mice support in RetroArch cores (lightguns, spinners, steering wheels):

      @markwkidd
      I know the mouse indexes with the cat order, I verified that the input driver in retroarch is udev and I set one of he mouse indexes for each player, but no results.

      What am I doing wrong or what am I missing?

      I should have asked earlier: which emulator core?

      S 1 Reply Last reply Reply Quote 0
      • S
        space invader @markwkidd
        last edited by

        @markwkidd
        lr-mame2003

        markwkiddM 1 Reply Last reply Reply Quote 0
        • markwkiddM
          markwkidd @space invader
          last edited by markwkidd

          @space-invader said in Multiple mice support in RetroArch cores (lightguns, spinners, steering wheels):

          @markwkidd
          lr-mame2003

          I will be honest I have not experienced this combination of symptoms so far.

          Can you attach a keyboard and confirm that it is functional in lr-mame2003?

          Also, is it possible for you to copy your logs to a service like pastebin and post the link?

          edit: A few more ideas.

          Does mame2003 work in other respects -- ie with a gamepad?

          Do you have any other input driver options than udev? If so, they probably don't support multi-mouse but it could be a clue to know whether other input drivers recognize your mouse devices at all.

          S 1 Reply Last reply Reply Quote 0
          • S
            space invader @markwkidd
            last edited by space invader

            @markwkidd
            As far as I can tell now:

            Keyboard works fine.
            Three Mouses are seen by the pi, using the cat order symbols appear when moving them.

            Now I have no access to the pi, but this night I will try with the joypad and with other drivers different from udev.

            Finally I have no idea on how to put the --verbose option.

            Many thanks for taking your time helping me.

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

              @space-invader said in Multiple mice support in RetroArch cores (lightguns, spinners, steering wheels):

              Finally I have no idea on how to put the --verbose option.

              you select it via the runcommand - https://retropie.org.uk/docs/Runcommand/

              'launch with verbose logging' or something like that. then after exit, the log is in /dev/shm/runcommand.log

              S markwkiddM 2 Replies Last reply Reply Quote 0
              • S
                space invader @dankcushions
                last edited by

                @dankcushions
                Ok, I will try it too. Thanks!

                1 Reply Last reply Reply Quote 0
                • markwkiddM
                  markwkidd @dankcushions
                  last edited by

                  @dankcushions said in Multiple mice support in RetroArch cores (lightguns, spinners, steering wheels):

                  you select it via the runcommand - https://retropie.org.uk/docs/Runcommand/

                  I have added this information to the docs, thanks!

                  1 Reply Last reply Reply Quote 0
                  • AnalogHeroA
                    AnalogHero
                    last edited by AnalogHero

                    Can anyone help me with this? Im trying to play term2 on lr-mame2003 with usb mouse. Retroarch and mame are updated. Raspi sees mouse with cat /dev/input/mice. Verbose logging says event0 for mouse. Set in retroarch accordingly.

                    Now the trouble:
                    Im unable to calibrate the lightgun. I cant set mousebutton as button 1 in retroarch input or in mame configuration screen (tab). I cant do anything with the mouse.

                    Ps. Mouse works fine in uae and quake3. Read the docs several times, and tried everything that i can think of.

                    markwkiddM 1 Reply Last reply Reply Quote 0
                    • markwkiddM
                      markwkidd @AnalogHero
                      last edited by markwkidd

                      @analoghero said in Multiple mice support in RetroArch cores (lightguns, spinners, steering wheels):

                      Can anyone help me with this? Im trying to play term2 on lr-mame2003 with usb mouse. Retroarch and mame are updated. Raspi sees mouse with cat /dev/input/mice. Verbose logging says event0 for mouse. Set in retroarch accordingly.

                      Now the trouble:
                      Im unable to calibrate the lightgun. I cant set mousebutton as button 1 in retroarch input or in mame configuration screen (tab). I cant do anything with the mouse.

                      Ps. Mouse works fine in uae and quake3. Read the docs several times, and tried everything that i can think of.

                      To confirm, have you built retroarch & lr-mame2003 from source? That is similar to a bug that was solved a week or more ago.

                      Assuming that is true, could you use runcommand to post a log?

                      1 Reply Last reply Reply Quote 0
                      • AnalogHeroA
                        AnalogHero
                        last edited by

                        @markwkidd TBH no. Updating from source now. Thought it was fixed.

                        markwkiddM 1 Reply Last reply Reply Quote 0
                        • markwkiddM
                          markwkidd @AnalogHero
                          last edited by

                          @analoghero said in Multiple mice support in RetroArch cores (lightguns, spinners, steering wheels):

                          @markwkidd TBH no. Updating from source now. Thought it was fixed.

                          I hope that will do the trick for you, because it does sound like the problem I had with my Wiimote/Dolphinbar before the latest udev driver updates.

                          1 Reply Last reply Reply Quote 0
                          • S
                            space invader
                            last edited by

                            Finally I got it working.

                            I did a fresh SD , watched the mouse indexes with cat order, I have three mouses (mouse1, mouse2 and mouse3) attached, but I didn't realised that my keyboard has a touchpad that acts like another mouse (mouse0).

                            Started Super Sprint and the touchpad controlled Player1 , Player2 and Player3 at the same time!

                            With the Retroarch rgui tried to set one different mouse for every player (P1=M1, P2=M2, P3=M3). The touchpad (M0) without action.

                            But only P2 worked.

                            I made trial-error proccess and discovered that the mouse indexes that work with retroarch were 0 (the touchpad), 2, 4 and 6 (the three mouses).

                            Set these last three and it works fine now, although I do not understand very well how :o

                            I also have the log file, but I do not know how to put it here, if it could be of interest, please tell me how...

                            Finally thank you all very much for your help and sorry for my bad English... ;)

                            HurricaneFanH 1 Reply Last reply Reply Quote 1
                            • HurricaneFanH
                              HurricaneFan @space invader
                              last edited by

                              @space-invader You could try pastbin to display your log file to those interested here.

                              https://pastebin.com

                              1 Reply Last reply Reply Quote 0
                              • AnalogHeroA
                                AnalogHero
                                last edited by AnalogHero

                                @markwkidd It kinda works now. But only one axis is recognised by the game.

                                Edit: Same in other games. Only horizontal movement of the crosshair. Why is that?

                                markwkiddM 1 Reply Last reply Reply Quote 0
                                • markwkiddM
                                  markwkidd @AnalogHero
                                  last edited by

                                  @analoghero said in Multiple mice support in RetroArch cores (lightguns, spinners, steering wheels):

                                  @markwkidd It kinda works now. But only one axis is recognised by the game.

                                  Edit: Same in other games. Only horizontal movement of the crosshair. Why is that?

                                  Could you check to make sure that you don't have the lr-mame2003 option enabled that is labelled "Share 2 player dial controls across one X/Y device"

                                  That's the last troubleshooting step I can think of. There are people here with more expertise than myself who will hopefully continue to help in this thread :). If after while there's no resolution here you might try posting in the RetroArch forums or by posting an issue in the RetroArch github issue tracker.

                                  In any event, people are going to want to see your RetroArch verbose log (described in the docs) and your retroarch.cfg to help debug. You should copy and paste those two items into a page at pastebin.com or another service, and link to it from forums posts and github issue posts.

                                  1 Reply Last reply Reply Quote 0
                                  • AnalogHeroA
                                    AnalogHero
                                    last edited by

                                    @markwkidd Yes its disabled. Checked retroarch-core-options.cfg and double checked in the options menu. When i select mouse index 0 now, my logitech wireless keyboards touchpad works as it should.

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      space invader
                                      last edited by space invader

                                      This is my runcommand.log, perhaps it could help somebody.

                                      https://pastebin.com/DjTmgwW7

                                      I'm not sure this is the best way to post it, but I don't know another...

                                      1 Reply Last reply Reply Quote 1
                                      • AnalogHeroA
                                        AnalogHero
                                        last edited by AnalogHero

                                        So... I finally got the movement fixed. Problem is when my 8bitdo nes30 pro is connected, mouse only works horizontal. Dont know why. Now the next problem is, i cant get the mousebutton to work. Cant assign it in Retroach or in mames config.

                                        FYI On my setup its the same mouse index as @space-invader . Mouse index 0 is keyboards touchpad and mouseindex 2 is usb mouse.

                                        S ? 2 Replies Last reply Reply Quote 0
                                        • S
                                          space invader @AnalogHero
                                          last edited by

                                          @analoghero said in Multiple mice support in RetroArch cores (lightguns, spinners, steering wheels):

                                          FYI On my setup its the same mouse index as @space-invader . Mouse index 0 is keyboards touchpad and mouseindex 2 is usb mouse.

                                          This is what I don not understand.
                                          With cat /dev/input/mouse'n' the indexes for my four mouses were 0, 1, 2 and 3. But in Retroarch the working indexes are 0, 2, 4 and 6.

                                          1 Reply Last reply Reply Quote 0
                                          • AnalogHeroA
                                            AnalogHero
                                            last edited by

                                            @space invader Did your mousebuttons work without doing any config? If not what did you do to make them work?

                                            S 2 Replies 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.