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 and Lightgun

    Scheduled Pinned Locked Moved Help and Support
    trackballlightguncfg
    17 Posts 3 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.
    • mediamogulM
      mediamogul Global Moderator @Kmetz7547
      last edited by

      @kmetz7547

      You can use a hub. The operating system will assign a ordered number to the devices based on the order the devices are discovered.

      RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

      1 Reply Last reply Reply Quote 0
      • K
        Kmetz7547
        last edited by

        @mediamogul
        I changed those 2 configs in the advmame 1.4 .rc and rebooted pi.
        Now no games load up (just brings me back to the game selection screen)
        any ideas?

        caver01C 1 Reply Last reply Reply Quote 0
        • caver01C
          caver01 @Kmetz7547
          last edited by

          @kmetz7547 You introduced some kind of syntax error or a duplicate line. If there is something wrong in the .rc file, advmame won't load.

          My 4-player cocktail style cabinet built as a custom "roadcase"

          1 Reply Last reply Reply Quote 0
          • K
            Kmetz7547
            last edited by

            Are we allowed to share our .rc file here? I could really use someone's help

            mediamogulM 1 Reply Last reply Reply Quote 0
            • mediamogulM
              mediamogul Global Moderator @Kmetz7547
              last edited by

              @kmetz7547

              Sure. You can either post it here surrounded on either side by three backticks, e.g. ``` , or you can post it somplace like www.pastebin.com and give a link to it.

              RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

              K 1 Reply Last reply Reply Quote 0
              • K
                Kmetz7547 @mediamogul
                last edited by

                @mediamogul

                https://pastebin.com/zZfR25FW

                mediamogulM 1 Reply Last reply Reply Quote 0
                • mediamogulM
                  mediamogul Global Moderator @Kmetz7547
                  last edited by mediamogul

                  @kmetz7547

                  It looks like @caver01 was right about you having duplicate entries.

                  input_map[p1_lightgunx] auto
                  input_map[p1_lightguny] auto
                  

                  Try removing the entries above, located at lines 107 and 108 and see if it'll launch.

                  RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                  K 1 Reply Last reply Reply Quote 0
                  • K
                    Kmetz7547 @mediamogul
                    last edited by Kmetz7547

                    @mediamogul
                    yes it now boots but lightgun does not work. (trackball does work)
                    im using wiimote with dolphinbar.
                    tried mode 1 and 2 on dolphinbar
                    should i be using something else?

                    If i attempt a new image, i can get the lightgun to work but then the trackball does not.
                    https://pastebin.com/HATtyPHk

                    thanks for the help guys

                    caver01C 2 Replies Last reply Reply Quote 0
                    • caver01C
                      caver01 @Kmetz7547
                      last edited by

                      @kmetz7547 Have you gone through this wiki yet? Lightgun/trackball--for your setup linux should be treating these as mice. You will probably want to do some of the tests suggested including running the advm utility to see what index advancemame is using for each device. Also, pay special attention to the settings that specify using RAW, PS2, and setting the index for each device in the .rc file.

                      My 4-player cocktail style cabinet built as a custom "roadcase"

                      1 Reply Last reply Reply Quote 0
                      • caver01C
                        caver01 @Kmetz7547
                        last edited by

                        @kmetz7547 For example, setting these lines:

                        device_mouse raw
                        device_raw_mousedev[0] /dev/input/mouse0
                        device_raw_mousedev[1] /dev/input/mouse1
                        device_raw_mousedev[2] /dev/input/mouse2
                        device_raw_mousedev[3] /dev/input/mouse3
                        device_raw_mousetype[0] ps2
                        device_raw_mousetype[1] ps2
                        device_raw_mousetype[2] ps2
                        device_raw_mousetype[3] ps2
                        

                        will define the first four mouse devices. Make sure you are not duplicating entries.

                        My 4-player cocktail style cabinet built as a custom "roadcase"

                        K 1 Reply Last reply Reply Quote 0
                        • K
                          Kmetz7547 @caver01
                          last edited by Kmetz7547

                          @caver01
                          Updated rc with these inputs and games still load but lightgun don't work. Just the d pad on the wiimote works, not the motion.
                          The trackball works within the lightgun games, bit the wiimote does not

                          caver01C 1 Reply Last reply Reply Quote 0
                          • caver01C
                            caver01 @Kmetz7547
                            last edited by

                            @kmetz7547 Did you do any of the testing described in the Wiki link?

                            My 4-player cocktail style cabinet built as a custom "roadcase"

                            1 Reply Last reply Reply Quote 0
                            • caver01C
                              caver01
                              last edited by

                              Also, these lines above only establish the input devices. You still have to map them using input_map lines.

                              My 4-player cocktail style cabinet built as a custom "roadcase"

                              K 1 Reply Last reply Reply Quote 0
                              • K
                                Kmetz7547 @caver01
                                last edited by Kmetz7547

                                @caver01
                                @mediamogul
                                cancel that, right after a reboot , it works!... I cant thank you guys enough. Awesome Help!

                                1 Reply Last reply Reply Quote 1
                                • 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.