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

    Are Multiple Mice Supported or Was That Feature Trashed?

    Scheduled Pinned Locked Moved Help and Support
    multiple micetrackballmousespinnerretroarch
    21 Posts 3 Posters 4.6k 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.
    • TangoT
      Tango
      last edited by

      This is the same text for a thread I started on the Libretro forums regarding the same issue:


      GOT IT!

      And it makes no sense to me at all.

      Again, here's what I have:

      /dev/input/mouse0: Trackball
      /dev/input/mouse1: Spinner

      And that's IT for /dev/input/mouseX. If X > 1, the device node just doesn't exist.

      Under events:

      /dev/input/event3 = Trackball
      /dev/input/event6 = Spinner

      When I tried cat /dev/input/eventX with event ≠ 3 or 6, I got no input at all from the trackball or spinner.

      So when I was in Port 1 Binds, I'd set the Mouse Index to 0, 1, 3, & 6. I've seen documentation that says that it's the event, not the mouse node that matters. But only 0 would work with the trackball. All other numbers would NOT work.

      I had, previously, when I had a mouse hooked up (and, I think, when I was using the older version of RetroPie), tried running through 0-10 for Mouse Index in RGUI and got nothing. ONLY 0 would work, and only with the trackball.

      But today I tried, almost by accident, using 2 for the Mouse Index and the spinner worked!

      I don't see why. I have mouse0 and mouse1. The only events that showed any input for the mouse devices were 3 & 6, and only when I tested them with cat /dev/input/eventX, and not with RetroArch at all.

      I'm wondering if there could be a bug with the Mouse Index numbers in RetroArch. I would think the Mouse Index would be the same number as the mouse device node or the event node. Or that the index would not skip over a blank. (In this case, it skips 1 - go from 0 for trackball to 2 for spinner.)

      So it works. If possible, I'd like to know why, but I'm just glad I got it working. There's other alterations I want to make to my config, but I didn't want them to get in the way of this issue, so I've waited to do them.

      This also provides support for the answer to one of my questions: I used Port 1 for almost everything and Port 2 for the spinner, so that's proof that the virtual pad for Player 1 can use devices from ports other than 1.

      mituM 1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator @Tango
        last edited by mitu

        @Tango said in Are Multiple Mice Supported or Was That Feature Trashed?:

        I would think the Mouse Index would be the same number as the mouse device node or the event node.

        Not really, the number assigned to the device is not necessarily the index of said device in the list of same-kind devices. For the /dev/mouseX, it might look like it is, but the /dev/input/eventZ are for all event generating devices (keyboards/gamepads/leds/mice/etc.).

        Let's say you plug in 3 mice, they get /dev/input/event1, /dev/input/event2 and /dev/input/event4. The indices would still be 0, 1, 2 (or 1, 2, 3 of numbering is from 1). Now, you remove the 2nd mouse, so /dev/input/event2 disappears, but the device in /dev/input for the remaining mice are the same, while the index for the 3rd mouse would shift downwards.

        TangoT 1 Reply Last reply Reply Quote 0
        • TangoT
          Tango @mitu
          last edited by

          @mitu

          @mitu said in Are Multiple Mice Supported or Was That Feature Trashed?:

          @Tango said in Are Multiple Mice Supported or Was That Feature Trashed?:

          I would think the Mouse Index would be the same number as the mouse device node or the event node.

          Not really, the number assigned to the device is not necessarily the index of said device in the list of same-kind devices. For the /dev/mouseX, it might look like it is, but the /dev/input/eventZ are for all event generating devices (keyboards/gamepads/leds/mice/etc.).

          Let's say you plug in 3 mice, they get /dev/input/event1, /dev/input/event2 and /dev/input/event4. The indices would still be 0, 1, 2 (or 1, 2, 3 of numbering is from 1). Now, you remove the 2nd mouse, so /dev/input/event2 disappears, but the device in /dev/input for the remaining mice are the same, while the index for the 3rd mouse would shift downwards.

          Okay, doing my rephrasing thing to see if I get it:

          Since my system used /dev/input/event3 and /dev/input/event6, I probably had some other device using something between 3 and 6, so /dev/input/event3 was Index=0 and /dev/input/event6 was Index=2, with some unknown dongle being in between at /dev/input/event[4 or 5] and that got Index=1.

          Is that saying the same thing?

          mituM 1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @Tango
            last edited by

            @Tango said in Are Multiple Mice Supported or Was That Feature Trashed?:

            Is that saying the same thing?

            Yes. I'm impressed you managed to keep it under 1 page this time :).

            TangoT 2 Replies Last reply Reply Quote 0
            • TangoT
              Tango @mitu
              last edited by

              @mitu said in Are Multiple Mice Supported or Was That Feature Trashed?:

              @Tango said in Are Multiple Mice Supported or Was That Feature Trashed?:

              Is that saying the same thing?

              Yes. I'm impressed you managed to keep it under 1 page this time :).

              You have no idea how much editing it takes to sort through what's in my head and make anything short!

              But there are also times I would rather have too much detail than leave out something important.

              1 Reply Last reply Reply Quote 0
              • TangoT
                Tango @mitu
                last edited by

                @mitu

                @mitu said in Are Multiple Mice Supported or Was That Feature Trashed?:

                @Tango said in Are Multiple Mice Supported or Was That Feature Trashed?:

                Is that saying the same thing?

                Yes. I'm impressed you managed to keep it under 1 page this time :).

                If this is true, it seems to me you can't be sure just what the index for a mouse device will be and, if there is more than one, trial and error will often be necessary.

                mituM 1 Reply Last reply Reply Quote 0
                • mituM
                  mitu Global Moderator @Tango
                  last edited by

                  If you only have 2 mice, they should always have the same index.

                  TangoT 1 Reply Last reply Reply Quote 0
                  • TangoT
                    Tango @mitu
                    last edited by

                    @mitu said in Are Multiple Mice Supported or Was That Feature Trashed?:

                    If you only have 2 mice, they should always have the same index.

                    True, but when you're first setting it up, you can't be sure just where they are.

                    I'm still puzzled, since the trackball is 0 and the spinner is 2 and, as far as I know, there are no other mouse type devices connected. My best guess is that one of the MiniPacs must have an undocumented mouse device in it that uses 1.

                    mituM 1 Reply Last reply Reply Quote 0
                    • mituM
                      mitu Global Moderator @Tango
                      last edited by

                      You can check by looking at the RetroArch's debug log and by running cat /proc/bus/input/devices.
                      Remembering your first RetroArch debug log, my guess is that RetroArch counts twice a mouse device as both /dev/input/mouseX and /dev/input/eventY. You can check this theory by adding a mouse (so you have 3 devices) and using indexes 0, 2 and 4 to see if each device is detected and working.

                      TangoT 1 Reply Last reply Reply Quote 0
                      • TangoT
                        Tango @mitu
                        last edited by

                        @mitu said in Are Multiple Mice Supported or Was That Feature Trashed?:

                        You can check by looking at the RetroArch's debug log and by running cat /proc/bus/input/devices.

                        Is proc/bus/input/devices a totally separate log than in /dev/shm?

                        Remembering your first RetroArch debug log, my guess is that RetroArch counts twice a mouse device as both /dev/input/mouseX and /dev/input/eventY. You can check this theory by adding a mouse (so you have 3 devices) and using indexes 0, 2 and 4 to see if each device is detected and working.

                        I get that - and on the first time! Yes, that's something I can check to see what's going on.

                        Thanks!

                        (At this point, I'm just thrilled I got it working and can move on to the other UI issues, like changing around a few key bindings/actions to make it more user friendly with the buttons and labels on my control console.)

                        mituM 1 Reply Last reply Reply Quote 0
                        • mituM
                          mitu Global Moderator @Tango
                          last edited by

                          @Tango said in Are Multiple Mice Supported or Was That Feature Trashed?:

                          Is proc/bus/input/devices a totally separate log than in /dev/shm?

                          Not really a log, but a listing of what input devices are detected by Linux and how are they handled (i.e. which /dev/input/eventX has assigned, what type of device is it, what driver is handling it, vendor/model info).

                          TangoT 1 Reply Last reply Reply Quote 0
                          • TangoT
                            Tango @mitu
                            last edited by

                            @mitu said in Are Multiple Mice Supported or Was That Feature Trashed?:

                            You can check by looking at the RetroArch's debug log and by running cat /proc/bus/input/devices.
                            Remembering your first RetroArch debug log, my guess is that RetroArch counts twice a mouse device as both /dev/input/mouseX and /dev/input/eventY. You can check this theory by adding a mouse (so you have 3 devices) and using indexes 0, 2 and 4 to see if each device is detected and working.

                            Okay. I can see that now, with access to the computer again. (Remember, it's in a different place than my desktop, that I use for posting.) Thanks!

                            Now I have the primary Mini PAC set in Keyboard Mode and I see that it recognizes the Mini PACs as devices, but also recognizes the devices on them separately. It looks like keyboard in the Mini PAC gets an event node. Interestingly, the Ultimarc SpinTrak (the spinner) gets Event 5, not 6. When I test with cat /dev/input/event6 I get input from the spinner and I don't with event5.

                            But this shows me that some of the devices are broken down into multiple devices and explains why something else is "in between" the trackball and the spinner.

                            As a side note, even though this is a built in function for RetroArch, I've now done what the manufacturer claims can't be done. Xtensions claims that, in D Input Mode, you can only have one mouse device, so you can have the trackball (somehow that always ends up as the one to take priority) but not the spinner in that mode. I'll be writing them about that!

                            When I have all my questions worked out, I'm going to either write up a few blog pages or make a few videos for others with the same issues. I'm hoping that they will use the so their other customers can get this working, too.

                            1 Reply Last reply Reply Quote 0
                            • TangoT Tango referenced this topic on
                            • 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.