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.
-
@brenthunter2005 said in MAME - USB Mouse works fine, but Aimtrak gun does not:
- 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.
-
@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)
-
@dankcushions Yes, complete power off & on.
-
@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.
-
@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] -
@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?
-
@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!
-
@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...
-
@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!
-
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?
-
@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.
-
@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.. -
@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! ;-)
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.