To assist with my ongoing issue of my Aimtrak guns not working after each startup(have to reconfig each time in Player1 Controls), I decided to do some more troubleshooting and did 3 steps to help me understand why :
1. Downloaded and configured Turnkey config and it created the Settings.ini file with the following entries
[Game Ports]
Port1=VID_D209&PID_1603&MI_01
Port2=VID_D209&PID_1604&MI_01
[Daemon Settings]
DaemonMode=FALSE
DaemonModeDelay=10
2. Using a Controlfile.cfg to ensure mapping of the AimTraks properly in my MAME.INI file
<mameconfig version="10">
<system name = "default">
<input>
<mapdevice device="PID_1603" controller="GUNCODE_1" />
<mapdevice device="PID_1604" controller="GUNCODE_2" />
<mapdevice device="ATRAK Device #3" controller="JOYCODE_1" />
<mapdevice device="ATRAK Device #4" controller="JOYCODE_2" />
</input>
</system>
</mameconfig>
3. I ran the following command line MAME64 galaga -V >log.txt
Input: Adding mouse #1: HID-compliant mouse (device id: \\?\HID#VID_D209&PID_1603&MI_02#7&2d815e26&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding mouse #2: HID-compliant mouse (device id: \\?\HID#VID_D209&PID_1604&MI_02#7&253d5881&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding lightgun #1: HID-compliant mouse (device id: \\?\HID#VID_D209&PID_1603&MI_02#7&2d815e26&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding lightgun #2: HID-compliant mouse (device id: \\?\HID#VID_D209&PID_1604&MI_02#7&253d5881&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding joystick #0: ATRAK Device #3 (device id: ATRAK Device #3 product_1603d209-0000-0000-0000-504944564944 instance_64521280-b6bb-11e8-8002-444553540000)
Input: Adding joystick #1: ATRAK Device #4 (device id: ATRAK Device #4 product_1604d209-0000-0000-0000-504944564944 instance_64521280-b6bb-11e8-8004-444553540000)
What is Mouse #1/#2? It's the same as Lightgun #1/#2
What I'm noticing is that the entries for "mouse #1 and #2" which I believe is the lightgun mouse gets randomly reassigned to mouse 1,2,3, or 4, so that it's inconsistent, which is causing my issue?. The Lightgun #1/#2 and Joystick #0/#1 remains consistent
Thoughts?