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

    MAME - USB Mouse works fine, but Aimtrak gun does not

    Scheduled Pinned Locked Moved Help and Support
    21 Posts 4 Posters 8.2k 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.
    • caver01C
      caver01 @brenthunter2005
      last edited by

      @brenthunter2005 I assume you have seen this thread? @a7mag3ddon had some interesting results when plugging and unplugging devices.

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

      1 Reply Last reply Reply Quote 0
      • B
        brenthunter2005
        last edited by brenthunter2005

        I have previously confirmed that the Aimtrak can be picked up on /dev/input/mouse0.

        I'm going to perform some further tests later today:

        1. Unplug the Ultimarc IPAC2 (which has support for a Trackball/Spinner) - I noticed that "mouse1" disappeared. AimTrak is still discoverable using "cat /dev/input/mouse0", but still is not recognised by game. I tested with normal Microsoft USB mouse, and all works fine.

        2. Swap around the AimTrak USB ports (it has two usb plugs, one for the gun, and one for the IR receiver) - this didn't make any difference, and AimTrak is still discoverable as /dev/input/mouse0

        3. Start a Linux desktop GUI and check AimTrak works out of the box - Of course I can't test this, because "startx" isn't available. Doh!

        4. Ensure a game in Advmame 1.4 works with the AimTrak - Yes, AimTrak works correctly with Advmame 1.4.

        The goal is to get the AimTrak working with lr-Mame2010, because that is the emulator that is meant to work with a mouse (ie: AimTrak).

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

          you could try it in lr-mame2003. it apparently works with the aimtrak gun (as long as that is the only "mouse" that is plugged in)

          1 Reply Last reply Reply Quote 0
          • B
            brenthunter2005
            last edited by

            I still can't get this working. I've edited my post above with the outcomes of my testing.

            Any other ideas, please?

            1 Reply Last reply Reply Quote 0
            • B
              brenthunter2005
              last edited by

              OK, I think I've got somewhere, kind of....

              I modified the runcommand to include verbose logging, and discovered some differences in the Mame logging depending if I had the USB Mouse plugged in or the AimTrak device:

              With the USB mouse plugged in:
              [udev] Adding device /dev/input/event0 as type ID_INPUT_KEYBOARD.
              [udev] Adding device /dev/input/event2 as type ID_INPUT_MOUSE.
              [udev] Adding device /dev/input/mouse0 as type ID_INPUT_MOUSE.
              Found joypad driver: "udev"

              With the AimTrak plugged in:
              [udev] Adding device /dev/input/event0 as type ID_INPUT_KEYBOARD.
              [udev] Adding device /dev/input/event4 as type ID_INPUT_MOUSE.
              [udev] Adding device /dev/input/js1 as type ID_INPUT_MOUSE.
              [udev] Adding device /dev/input/mouse0 as type ID_INPUT_MOUSE.
              [udev]: Plugged pad: Ultimarc Ultimarc (53769:5633) on port #0.
              Autodetect: 0 profiles found
              Autodetect: no profiles found for Ulitmarc Ultimarc (53769/5633)
              [udev]: Pad #0 (/dev/input/event3) supports 0 force feedback effects
              Found joypad driver: "udev".

              It appears that the Aimtrak is not being detected exactly the same as the USB Mouse.

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

                @brenthunter2005 said in MAME - USB Mouse works fine, but Aimtrak gun does not:

                1. Ensure a game in Advmame 1.4 works with the AimTrak - still trying... , no dice.... I tested with normal Microsoft USB mouse, and all works fine.

                What did you try in AdvancdMAME 1.4? You already said advm worked. Because it's a mouse device, you need to go through the .rc configuration file and setup the mapping for AdvanceMAME as described in the Spinners and Trackballs wiki page I wrote. Mouse controls don't work if you don't set it up correctly, however, once configured, you can map almost any combination you like, especially knowing you already were successful with advm.

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

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

                  @brenthunter2005 said in MAME - USB Mouse works fine, but Aimtrak gun does not:

                  OK, I think I've got somewhere, kind of....

                  I modified the runcommand to include verbose logging, and discovered some differences in the Mame logging depending if I had the USB Mouse plugged in or the AimTrak device:

                  With the USB mouse plugged in:
                  [udev] Adding device /dev/input/event0 as type ID_INPUT_KEYBOARD.
                  [udev] Adding device /dev/input/event2 as type ID_INPUT_MOUSE.
                  [udev] Adding device /dev/input/mouse0 as type ID_INPUT_MOUSE.
                  Found joypad driver: "udev"

                  With the AimTrak plugged in:
                  [udev] Adding device /dev/input/event0 as type ID_INPUT_KEYBOARD.
                  [udev] Adding device /dev/input/event4 as type ID_INPUT_MOUSE.
                  [udev] Adding device /dev/input/js1 as type ID_INPUT_MOUSE.
                  [udev] Adding device /dev/input/mouse0 as type ID_INPUT_MOUSE.
                  [udev]: Plugged pad: Ultimarc Ultimarc (53769:5633) on port #0.
                  Autodetect: 0 profiles found
                  Autodetect: no profiles found for Ulitmarc Ultimarc (53769/5633)
                  [udev]: Pad #0 (/dev/input/event3) supports 0 force feedback effects
                  Found joypad driver: "udev".

                  It appears that the Aimtrak is not being detected exactly the same as the USB Mouse.

                  did you unplug your USB mouse before you plugged in the gun? mame2010 and any other libretro cores should only understand the first mouse (if any)

                  B 1 Reply Last reply Reply Quote 0
                  • B
                    brenthunter2005 @dankcushions
                    last edited by

                    @dankcushions Yes, complete power off & on.

                    1 Reply Last reply Reply Quote 0
                    • B
                      brenthunter2005 @caver01
                      last edited by

                      @caver01 The USB mouse works fine. But when I swap out for the Aimtrak it isn't picked up. I will double-check the configuration.

                      1 Reply Last reply Reply Quote 0
                      • B
                        brenthunter2005 @caver01
                        last edited by

                        @caver01 AimTrak works correctly with Advmame 1.4. The .rc file is as follows:

                        device_mouse raw
                        device_raw_firstkeyhack no
                        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
                        input_map[p1_dialx] mouse[0,x] mouse[1,x] mouse[2,x]
                        input_map[p1_dialy] mouse[0,y] mouse[1,y] mouse[2,y]
                        input_map[p1_lightgunx] mouse[0,x] mouse[1,x] mouse[2,x]
                        input_map[p1_lightguny] mouse[0,y] mouse[1,y] mouse[2,y]
                        input_map[p1_mousex] mouse[0,x] mouse[1,x] mouse[2,x]
                        input_map[p1_mousey] mouse[0,y] mouse[1,y] mouse[2,y]

                        1 Reply Last reply Reply Quote 1
                        • markwkiddM
                          markwkidd
                          last edited by

                          @brenthunter2005 yesterday, RetroArch added support for light guns in the same category as the AimTrak. I've tested this new functionality with a Dolphinbar/Wiimote and it works great.

                          Since I don't have an Aimtrak gun I'm hoping someone who does will be willing to rebuild RetroArch from source and try out the new feature. Any chance you have one and would be willing to give it a try?

                          B 2 Replies Last reply Reply Quote 0
                          • B
                            brenthunter2005 @markwkidd
                            last edited by

                            @markwkidd Hello, sorry for my delay. I'll be trying this later this weekend and will let you know how I get on. Thank you!

                            1 Reply Last reply Reply Quote 1
                            • B
                              brenthunter2005 @markwkidd
                              last edited by

                              @markwkidd Sorry mate, I'm not going to be able to test this. I turned on my cabinet this morning and the Aimtrak arcade gun started smoking! I think the solenoid/recoil is broken, so I'm in contact with Ultimarc to investigate further...

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

                                @brenthunter2005 said in MAME - USB Mouse works fine, but Aimtrak gun does not:

                                @markwkidd Sorry mate, I'm not going to be able to test this. I turned on my cabinet this morning and the Aimtrak arcade gun started smoking! I think the solenoid/recoil is broken, so I'm in contact with Ultimarc to investigate further...

                                Oh my. Good luck!

                                1 Reply Last reply Reply Quote 0
                                • B
                                  brenthunter2005
                                  last edited by

                                  Ok, I'm ready to start testing this. Are the updates you refer to now included as part of RetroArch, or will I still need to rebuild from source?

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

                                    @brenthunter2005 said in MAME - USB Mouse works fine, but Aimtrak gun does not:

                                    Ok, I'm ready to start testing this. Are the updates you refer to now included as part of RetroArch, or will I still need to rebuild from source?

                                    Great!

                                    RetroArch 1.6.9 and 1.7.0 should both have the new functionality. Ideally you would use 1.7.0 for the testing because the new lightgun API is still undergoing periodic tweaks.

                                    B 1 Reply Last reply Reply Quote 0
                                    • B
                                      brenthunter2005 @markwkidd
                                      last edited by

                                      @markwkidd I feel that I'm started again from scratch with this aimtrak gun. It won't calibrate properly using "gunconf" and everything is upside down (when I move the gun down, the cursor on the screen goes up!).
                                      Let me review my configuration..

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

                                        @brenthunter2005 said in MAME - USB Mouse works fine, but Aimtrak gun does not:

                                        everything is upside down (when I move the gun down, the cursor on the screen goes up!).

                                        Maybe that it is because you hold your gun sideways, gangsta style! ;-)

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

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