Build Your Own Arcade Controls Forum
Main => Software Forum => Topic started by: charlieram on September 26, 2013, 10:19:34 pm
-
OK, What I want to be able to do is map the trigger buttons on my Aimtrak lightguns (which appear as Left mouse click when pointing on screen) to unmapped keys on my keyboard. The reason I want to do this is so I can use Mame hooker to then read the key presses and send a signal to my solenoids, mainly for the games which have no outputs hooked up. I have had it working for one lightgun using something like LButton::k but the problem is it sees both guns as one mouse. so player two could activate player ones recoil. I understand I need Raw input events and so I had a look at AHKhid but it makes absolutely no sense to me so I was wondering if anyone has done something similar using two mice/lightguns and if they wanted to share the script so I could see if I can manipulate it for my needs or give me any other ideas on how to accomplish this.
Thanks
-
You could take a look to my AllInOneFYC program.
Now, I am programming a new version to translate to english.
Grertings!
Enviado desde mi GT-N7100 usando Tapatalk 2
-
You could take a look to my AllInOneFYC program.
Now, I am programming a new version to translate to english.
Grertings!
Enviado desde mi GT-N7100 usando Tapatalk 2
What does that have to do with his question? Does your program distinguish between multiple mice and post key presses specific to each one?
-
I'm hoping maybe Howard could help me out, I know he has done something similar with Trouble shooter 2 but I dont know if he used VB or Autohotkey to map the Triggers to A and Z, I did try changing the Aimtrak trigger to gamepad buttons in the Aimtrak config utility rather than the Left/Right mouse buttons and I am then able to differentiate between the two gun triggers but it also broke the inputs for Demul and the reload on Model 2 emu with troubleshooter. Maybe I need to revisit that option again because the AHKHID script is just too confusing and TBH I don't even know if it contains the functionality I need.
-
I may have been trying to go about this all wrong! I just set the Aimtraks as joysticks in the Aimtrak config utility and reran the TS2 model 2 setup using joysticks, now reload works fine and I can map the joystick buttons to unused keys for Mame Hooker :applaud:.
I just need to remap MAME and Demul now, Mame should be easy enough but I think for Demul I may have to use an autohotkey script to convert the joystick outputs from my Aimtrak to mouse movement and mouse clicks. I have seen scripts that do this so it should be a lot simpler than AHKHID, also it means in Demul I can have only one gun controlling the cursor/shots (Demul does not use raw input and sees both guns as one in mouse mode) so that is another plus if I get it working.
-
Well, I've now got the inputs configured on all the emulators, What a pain in the ass! I can also use mame hooker to monitor the key presses in supermodel to fire the recoils but how do I get mamehooker to read key presses when Demul is running. Mamehooker doesn't register that its running so the key maps aren't read?
-
There is an option to always monitor keypresses. That's what you want.
-
I saw that option yesterday and thought that was what it did so I enabled it and put the key presses into the default ini but it didn't do anything? I looked in the debug window when Demul was running but there was nothing being shown, When Model 2 emu runs it says Mame_Start and so the keypresses work using the default.ini, Do I need to put the key presses into a different ini?
EDIT
Well, I just tried it again and it works?? Maybe I had inadvertently stopped the script yesterday.
Thanks.