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

    Light Gun!!!

    Scheduled Pinned Locked Moved General Discussion and Gaming
    45 Posts 13 Posters 39.5k 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 @Parzival
      last edited by mediamogul

      @Parzival

      My MAME arcade cabinet has a dual light gun setup, but I run it with Windows on a substantially more powerful computer board that allows access to more processor intensive gun games Like 'Area 51' and 'Terminator 2'. I also use AimTrak guns which are likely to be best suited for this type of project. However, you can get away with using Wiimotes for a good bit less money. I would recommend looking into the Mayflash DolphinBar in that case.

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

      A 1 Reply Last reply Reply Quote 0
      • dankcushionsD
        dankcushions Global Moderator
        last edited by

        a fix to mame2003 that is going live shortly lets you use a mouse/analog joystick to aim in lightgun games. any lightgun that is seen by linux as an analog stick/mouse should work fine. eg, that aimtrak gun should work.

        but, like @mediamogul says, such games are a dog on the pi. i guess older stuff like operation wolf should work ok.

        mediamogulM 1 Reply Last reply Reply Quote 2
        • mediamogulM
          mediamogul Global Moderator @dankcushions
          last edited by mediamogul

          @dankcushions said in Light Gun!!!:

          that aimtrak gun should work.

          I can't wait to give the new version a try. Many thanks are in order for your recent work regarding the addition of samples, artwork, trackballs & mice. However, one road block that might still exist for AimTrak & DolphinBar support is whether or not the newly added mouse support extends to absolute mouse coordinates. I hope to be wrong about this, but it's my understanding that they will not function otherwise. Even if that's true, accelerometer-based airmouse remotes are always an option and a lot of fun to shoot ducks with as well.

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

          1 Reply Last reply Reply Quote 0
          • A
            a7mag3ddon
            last edited by

            So is this live now in the latest mame2003 and RP ?

            How do i enable the feature?

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

              @a7mag3ddon just update it. no config needed. it will pick up any mouse connected.

              this thread shows how to update: https://retropie.org.uk/forum/topic/2889/mame-development-lr-mame2003-updates

              1 Reply Last reply Reply Quote 0
              • A
                a7mag3ddon
                last edited by

                I just cant get it to work.

                I go into setting (for this game ) which in this case is Vs Duck Hunt. i scroll down to the lightgun sections hit enter, move my gun up / down or left/right and i dont get anything.

                The only thing im able to set is fire button, and am able to 'shoot' on screen fine.

                I checked with my phone camera to make sure the infra red LEDS were running and they are just no controls.

                You sure i dont need to enable gun control anywhere ?

                Help appreciated :-)

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

                  @a7mag3ddon that's not how it's configured - it just works IF your gun is seen by Linux as a mouse or analog stick. if not, you're out of luck. how is it seen by Linux?

                  1 Reply Last reply Reply Quote 0
                  • A
                    a7mag3ddon
                    last edited by

                    How do i check in commandline in retropie?

                    I checked lsusb and its connected as Ultimarc

                    Its an Aimtrack so should work

                    caver01C 1 Reply Last reply Reply Quote 0
                    • A
                      a7mag3ddon
                      last edited by

                      Grr im getting loads of errors when i update using retropie update menu

                      Whats the command to update via commandline ?

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

                        @a7mag3ddon so you hadn't updated??

                        retropie menu is the same script you'd use via command line. what errors are you getting? all the warnings that come up are normal for mame2003. you only have a problem if it fails.

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

                          @a7mag3ddon said in Light Gun!!!:

                          How do i check in commandline in retropie?

                          You can check mouse input via command line using the linux testing same as trackball/spinners:

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

                          1 Reply Last reply Reply Quote 0
                          • A
                            a7mag3ddon
                            last edited by a7mag3ddon

                            Yeah installed ok, when i do the mouse test i get mouse 0 and its the touchpad on my keyboard.

                            But when i do lsusb i see Bus 001 Device 006: ID d209:1601 Ultimarc

                            how can i get it to detect the gun instead of the mouse on keyboard or preferably both.

                            Fire button on the gun is being detected ok so its kinda working?

                            dankcushionsD caver01C 2 Replies Last reply Reply Quote 0
                            • dankcushionsD
                              dankcushions Global Moderator @a7mag3ddon
                              last edited by

                              @a7mag3ddon what about if you unplug your keyboard? retroarch only cares about your first mouse device (mouse0)

                              it being detected as an altimarc whatever doesn't matter - it needs to be seen by Linux as a mouse.

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

                                @a7mag3ddon In addition, do you even see another device under /dev/input/ besides mouse0? if not, your device isn't being detected by linux as a mouse, and as @dankcushions said, it needs to be a mouse in order for the emulator to pick up on it.

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

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

                                  @a7mag3ddon

                                  On the Raspberry Pi, I've only ever been able to get my Aimtrak/DolphinBar guns functional in RetroPie's UAE4ALL2 and RecalBox's ScummVM. Throughout everything I've read on the matter, a program needs to be written with specific support for input devices using absolute coordinates, like that of touch screen support. If you do manage to get it working in some way, there's going to be plenty of happy people, including myself.

                                  Edit: Meant to reply to a7mag3ddon

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

                                  dankcushionsD 1 Reply Last reply Reply Quote 0
                                  • A
                                    a7mag3ddon
                                    last edited by

                                    Well i read somehwere that support for light guns was added to new version of mame 2003 which reignited my search to get my aimtrack going on retropie, when i got it at xmas last year i was told, NO not even supported so left it at that.

                                    1 Reply Last reply Reply Quote 0
                                    • A
                                      a7mag3ddon
                                      last edited by

                                      in /dev/input/

                                      I see mouse0 and mouse1 both dated with the time that i turned on the pi..

                                      going to test with keyboard unplugged now see what happens

                                      1 Reply Last reply Reply Quote 1
                                      • dankcushionsD
                                        dankcushions Global Moderator @mediamogul
                                        last edited by

                                        @mediamogul said in Light Gun!!!:

                                        @a7mag3ddon

                                        On the Raspberry Pi, I've only ever been able to get my Aimtrak/DolphinBar guns functional in RetroPie's UAE4ALL2 and RecalBox's ScummVM. Throughout everything I've read on the matter, a program needs to be written with specific support for input devices using absolute coordinates, like that of touch screen support. If you do manage to get it working in some way, there's going to be plenty of happy people, including myself.

                                        Edit: Meant to reply to a7mag3ddon

                                        have you tested with the latest version? if it needs trackpad support I can add that :) but I'd be interested to hear what happens at the moment.

                                        mediamogulM 2 Replies Last reply Reply Quote 0
                                        • mediamogulM
                                          mediamogul Global Moderator @dankcushions
                                          last edited by

                                          @dankcushions

                                          Sure, I'll test both devices later this evening. I can't remember if I had two mice hooked up last time, so a7mag3ddon's current test could say a lot in the mean time.

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

                                          1 Reply Last reply Reply Quote 0
                                          • A
                                            a7mag3ddon
                                            last edited by

                                            Ok, light gun works!!! if i unplug the keyboard dongle and plug back after the pi has booted.

                                            So question, how to get the keyboard mouse to always detect as 1 so that gun always comes in at 0 ?

                                            dankcushionsD 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.