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

    [Solved] Mouse like Lightgun in lr-fceumm not work

    Scheduled Pinned Locked Moved Help and Support
    light gunmouse
    12 Posts 4 Posters 835 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.
    • M
      MrLightgun
      last edited by

      Similar to the last answer, you said you have bound the mouse to player 1 but you need to bind it to player 2. Try all the different indexes. If that doesn't fix it you need to try removing some devices to make it easier to understand what is going on.

      1 Reply Last reply Reply Quote 0
      • C
        Cesarpuig
        last edited by

        @mitu @MrLightgun

        Yes thanks.

        It worked, in the file retroarch.cfg I had the configuration of the mouse like this:

        input_player1_mouse_index = "2"
        input_player2_mouse_index = "0"
        

        I have added these two lines to the retroarch.cfg file of the nes system:

        input_player1_mouse_index = "0"
        input_player2_mouse_index = "2"
        

        To modify the assignment of the mouse only for this system since in the others it worked well for me.

        Another question, if you don't mind, why does it detect four mice, if I only have two connected?

        [INFO] [udev]: Mouse #0 (/dev/input/event1).
        [INFO] [udev]: Mouse #1 (/dev/input/mouse0).
        [INFO] [udev]: Mouse #2 (/dev/input/event5).
        [INFO] [udev]: Mouse #3 (/dev/input/mouse1).
        

        Thanks to both of you.

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

          @Cesarpuig said in Mouse like Lightgun in lr-fceumm not work:

          To modify the assignment of the mouse only for this system since in the others it worked well for me.

          That may be system specific since the Zapper used in the P2 port on the NES/Famicom, hence it applies what @MrLightgun said - the P2 mouse index is what matters.

          Another question, if you don't mind, why does it detect four mice, if I only have two connected?

          Can't say why without a listing of connected device, can you run cat /proc/bus/input/devices and post the output ?

          C 1 Reply Last reply Reply Quote 0
          • C
            Cesarpuig @mitu
            last edited by

            @mitu said in Mouse like Lightgun in lr-fceumm not work:

            cat /proc/bus/input/devices

            Yes of course

            I: Bus=0003 Vendor=d209 Product=0420 Version=0111
            N: Name="Ultimarc IPAC 2 Ultimarc IPAC 2"
            P: Phys=usb-3f980000.usb-1.2/input0
            S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:D209:0                                                                                                                               420.0001/input/input0
            U: Uniq=8
            H: Handlers=sysrq kbd leds event0
            B: PROP=0
            B: EV=120013
            B: KEY=e080ffdf 1cfffff ffffffff fffffffe
            B: MSC=10
            B: LED=1f
            
            I: Bus=0003 Vendor=d209 Product=0420 Version=0111
            N: Name="Ultimarc IPAC 2 Ultimarc IPAC 2"
            P: Phys=usb-3f980000.usb-1.2/input1
            S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1/0003:D209:0                                                                                                                               420.0002/input/input1
            U: Uniq=8
            H: Handlers=mouse0 event1
            B: PROP=0
            B: EV=17
            B: KEY=70000 0 0 0 0 0 0 0 0
            B: REL=3
            B: MSC=10
            
            I: Bus=0003 Vendor=d209 Product=0420 Version=0111
            N: Name="Ultimarc IPAC 2 Ultimarc IPAC 2"
            P: Phys=usb-3f980000.usb-1.2/input2
            S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.2/0003:D209:0                                                                                                                               420.0003/input/input2
            U: Uniq=8
            H: Handlers=kbd leds event2
            B: PROP=0
            B: EV=20013
            B: KEY=ffffffff 80000000 0 7a c000 1e0000 0 0 0
            B: MSC=10
            B: LED=ff00
            
            I: Bus=0003 Vendor=04d9 Product=1702 Version=0110
            N: Name="  USB Keyboard"
            P: Phys=usb-3f980000.usb-1.3/input0
            S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/0003:04D9:1                                                                                                                               702.0004/input/input3
            U: Uniq=
            H: Handlers=sysrq kbd leds event3
            B: PROP=0
            B: EV=120013
            B: KEY=10000 7 ff800000 7ff febeffdf f3cfffff ffffffff fffffffe
            B: MSC=10
            B: LED=7
            
            I: Bus=0003 Vendor=04d9 Product=1702 Version=0110
            N: Name="  USB Keyboard"
            P: Phys=usb-3f980000.usb-1.3/input1
            S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.1/0003:04D9:1                                                                                                                               702.0005/input/input4
            U: Uniq=
            H: Handlers=kbd event4
            B: PROP=0
            B: EV=13
            B: KEY=10000 2000000 39fa d941d001 1e0000 0 0 0
            B: MSC=10
            
            I: Bus=0003 Vendor=1bcf Product=0005 Version=0110
            N: Name="USB Optical Mouse"
            P: Phys=usb-3f980000.usb-1.5/input0
            S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/0003:1BCF:0                                                                                                                               005.0006/input/input5
            U: Uniq=
            H: Handlers=mouse1 event5
            B: PROP=0
            B: EV=17
            B: KEY=1f0000 0 0 0 0 0 0 0 0
            B: REL=143
            B: MSC=10
            
            
            1 Reply Last reply Reply Quote 0
            • mituM
              mitu Global Moderator
              last edited by

              It looks like RetroArch is counting twice each mouse - both as /dev/input/mouseX and as /dev/input/eventY.

              C 2 Replies Last reply Reply Quote 0
              • C
                Cesarpuig @mitu
                last edited by

                @mitu
                Why?

                Now that I have managed to operate the mouse as a lightgun I want to connect a dolphin bar, which would add another keyboard and a mouse.

                It is a problem?

                1 Reply Last reply Reply Quote 0
                • C
                  Cesarpuig @mitu
                  last edited by Cesarpuig

                  @mitu
                  Hello.

                  I read this in libretro forums:

                  Determining mice index numbers

                  Make sure that your input driver is set to one with multi-mouse support. If you change this setting, quit RetroArch and restart.

                  Start RetroArch from the commandline with the option --verbose so that you can see status messages. If that’s not practical, folks can use trial and error to find the indexes.

                  udev example:

                  [INFO] [udev]: Keyboard #0 (/dev/input/event3).
                  [INFO] [udev]: Mouse #0 (/dev/input/event4).
                  [INFO] [udev]: Mouse #1 (/dev/input/mouse0).
                  [INFO] [udev]: Mouse #2 (/dev/input/event5).
                  

                  Interpretation

                  Please disregard any devices listed for the legacy interfaces /dev/input/mouse* and /dev/input/js*. Look instead for the /dev/input/event* indexes. In this example, there are two lightgun devices attached, along with a keyboard-style arcade control panel. To use both lightguns, the correct mouse indexes to use would be 0 and 2.

                  And in the retropie wiki there is similar information, I think the configuration of my mice is correct.

                  I'm right?

                  Thanks

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

                    @Cesarpuig said in Mouse like Lightgun in lr-fceumm not work:

                    And in the retropie wiki there is similar information, I think the configuration of my mice is correct.
                    I'm right?

                    Looks like it.

                    1 Reply Last reply Reply Quote 0
                    • C
                      Cesarpuig
                      last edited by

                      @mitu @MrLightgun

                      Hi. I have connected a dolphin bar and it works fine.

                      I don't know how to add the [Solved] tag to the thread

                      Thanks to both of you

                      ClydeC 1 Reply Last reply Reply Quote 0
                      • ClydeC
                        Clyde @Cesarpuig
                        last edited by

                        @Cesarpuig said in Mouse like Lightgun in lr-fceumm not work:

                        I don't know how to add the [Solved] tag to the thread

                        Just click on the tree vertical dots at the right of your first post, choose "edit" and put a "[Solved]" before the title manually.

                        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.