Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: crummy on March 16, 2008, 03:39:07 pm

Title: Quit button [AutoHotKey issue]
Post by: crummy on March 16, 2008, 03:39:07 pm
Heh, somehow I got this far without figuring out how to quit.

Here are the controls currently on my cabinet (available to windows):
Joy1
Joy2
Joy1 buttons 1-7 (controls + p1start)
Joy2 buttons 1-7 (controls + p2start)
Mouse1+2+3 (insert coin1+2, pause)

I'm sure I can bind a combo (likely joy1b7, joy2b7, mouse3) to quit in MAME. However, this won't work for most other emulators I wouldn't expect. I could shell out for a keyboard encoder like an IPAC and just wire a few keys to trigger Escape but that seems a little excessive. Is there another solution?

FWIW I'm tossing up between GameEx and MALA for my interface.
Title: Re: Quit button
Post by: headkaze on March 16, 2008, 04:12:25 pm
With IPAC you can have a "shift" function. So since you don't have a dedicated ESC key like I do on my panel, most people make "P" or "Pause" their shift button. So you could make exit "P1Start+Pause" or any other button with Pause.
Title: Re: Quit button
Post by: crummy on March 16, 2008, 04:25:52 pm
I have Ultimarcs, they support shift functionality I think. I'll look into that.
Title: Re: Quit button
Post by: crummy on March 16, 2008, 05:21:58 pm
Alternately, does anyone know of software that will let me bind mouse1+mouse2 (simultaneous) to ESC?
Title: Re: Quit button
Post by: protokatie on March 16, 2008, 06:41:44 pm
try autohotkey, it allows you to make simple scripts that can remap key and mouse input to perform other key or mouse actions.

http://www.autohotkey.com/
Title: Re: Quit button
Post by: crummy on March 17, 2008, 01:34:41 am
try autohotkey, it allows you to make simple scripts that can remap key and mouse input to perform other key or mouse actions.

http://www.autohotkey.com/
Thanks, this really looks like it could be good. However, it seems to have issues with games. Here's a forum thread I've been using:
http://www.autohotkey.com/forum/post-185084.html#185084

The issue seems to surround pressing two joystick buttons (which means you can't use the standard "button1 & button2" syntax), plus the fact that games (or in this case MAME and GameEx) do fancy things with keyboard input which invalidates some of the standard methods.

So: Has anyone here used AutoHotKey to write an equivalent of "button1 & button2::Send {Esc}" ?
Title: Re: Quit button [AutoHotKey issue]
Post by: protokatie on March 17, 2008, 04:23:32 am
Crummy, I have not. Im sorry you couldnt find your method with it (although you may be able to). Just trying to help. One thing to consider is to change your IPAC and or MAME key config to accept different inputs to do what you want.

good luck.
Title: Re: Quit button [AutoHotKey issue]
Post by: crummy on March 18, 2008, 06:56:57 pm
I'm using Ultrastik's so I can't configure the signal sent out at all.

I've been considering an alternative: Just using MESS. That emulates everything I want, and MAME lets me configure keys however I want, right?

... Well, maybe not. I could have sworn I saw key bindings to exit in MAME but now I can't find them. Is there a way within MAME to add "Exit MAME" to the key configuration menu? Once I get it in there I can easily set up "Joy7 + 2Joy7" to trigger a quit.
Title: Re: Quit button [AutoHotKey issue]
Post by: u_rebelscum on March 19, 2008, 12:29:21 pm
Is there a way within MAME to add "Exit MAME" to the key configuration menu? O

You're looking for "UI Cancel"

start game, tab, Input (general), User Interface, UI Cancel