Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Any way to programatically switch between Joy/Mouse for AimTrak guns?  (Read 1696 times)

0 Members and 1 Guest are viewing this topic.

nugarp

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 289
  • Last login:Yesterday at 01:52:36 am
  • I want to build my own arcade controls!
Hi guys,

I'm in a bit of a quandry. I received 2 AimTrak guns in the mail today. Using TroubleShooter 2, I was able to get them to work concurrently in Model2/Model3. However, I also wanted to get them to work in Dolphin. The caveat is that mouse mode wouldn't work in Dolphin, so I had to switch over to joystick mode. Joystick mode doesn't seem to fare too well in Model2. I would also like to be able to navigate the system as a mouse when not playing a game.

I'm in the process of writing my own game loader; it's been in the works for about 5 weeks now. I'm wondering if there is a way to automate the switching of the AimTraks from mouse/joystick and vice versa? Because otherwise it seems like I'd be limiting myself to wii shooters or M2 shooters (I haven't tested joystick mode in M3).

Ideally, I'd be able to use dual lightguns in all setups.

I have no problem calling the switch so it suits for my purposes - I am just unsure of /how/ to automate the switch.

Thanks for reading!
Wheel2XInput | HDRecoil | LeaderLamps | NetLauncher | Discord | Youtube

AndyWarne

  • Trade Count: (+18)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1938
  • Last login:April 11, 2021, 03:37:09 am
    • Ultimarc
Re: Any way to programatically switch between Joy/Mouse for AimTrak guns?
« Reply #1 on: February 25, 2014, 04:54:37 am »
At the present time the gun cant be switched from one mode to the other on the fly, but I can look at adding this feature.

It wont be possible to do this for a month or so though owing to other projects.

Andy

nugarp

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 289
  • Last login:Yesterday at 01:52:36 am
  • I want to build my own arcade controls!
Re: Any way to programatically switch between Joy/Mouse for AimTrak guns?
« Reply #2 on: February 25, 2014, 12:17:34 pm »
Hey thanks for the reply Andy! Let me know if there's any way I can make the process easier. I'd be happy to also pay a little ($20) for the extra time it takes to write a command line or other interface.


The guns are great and I think having this additional ability would help further set them above the competition.

Even something as easy as:

aimtrak.exe -device=1 -type=mouse -tOn=Mouse_Left -tOff=Mouse_Right -auxOn=Mouse_Right -auxOff=Mouse_Right

Etc would be more than sufficient - no need to edit calibration settings; and running it on one device at a time is fine too.

Thanks!
« Last Edit: February 25, 2014, 12:26:31 pm by nugarp »
Wheel2XInput | HDRecoil | LeaderLamps | NetLauncher | Discord | Youtube

charlieram

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 140
  • Last login:June 03, 2024, 03:42:30 pm
    • TTA Games
Re: Any way to programatically switch between Joy/Mouse for AimTrak guns?
« Reply #3 on: February 25, 2014, 02:55:33 pm »
I set both of mine up as joysticks in the aimtrak utility and then used an autohotkey script to translate the joystick axis to the mouse coordinates for Demul (only 1 player). For Mame and supermodel it was a simple setup and for model 2 I used Troubleshooter 2. The ahk.exe was launched by the frontend at the same time as the corresponding emulator.

nugarp

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 289
  • Last login:Yesterday at 01:52:36 am
  • I want to build my own arcade controls!
Re: Any way to programatically switch between Joy/Mouse for AimTrak guns?
« Reply #4 on: February 26, 2014, 04:04:39 am »
Thanks for the heads up. I can deal with that as a solution in the meanwhile. Do you mind sharing your AHK script by any chance? I don't receive any response from the aimtraks through AHK, presumably because they probably aren't actively sending axis state in gamepad mode?
Wheel2XInput | HDRecoil | LeaderLamps | NetLauncher | Discord | Youtube

Brian74

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1089
  • Last login:April 21, 2025, 11:11:53 am
  • Yep... I built that!!
Re: Any way to programatically switch between Joy/Mouse for AimTrak guns?
« Reply #5 on: October 22, 2015, 12:00:04 pm »
I know this is almost a yr old thread but has there been any headway on this?

Sent from my LG-H811 using Tapatalk

         

nugarp

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 289
  • Last login:Yesterday at 01:52:36 am
  • I want to build my own arcade controls!
Re: Any way to programatically switch between Joy/Mouse for AimTrak guns?
« Reply #6 on: October 23, 2015, 12:43:45 am »
I can share my AHK script some time next week. Down side is it only works for one controller because most things won't support two mice. I have both guns set as joysticks and they work in m2/m3/mame just fine. Demul is limited to one player unfortunately and requires the AHK script.


Sent from my iPhone using Tapatalk
Wheel2XInput | HDRecoil | LeaderLamps | NetLauncher | Discord | Youtube