Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: ratsflif on January 05, 2015, 04:53:19 pm

Title: gamepad button combination to keyboard key
Post by: ratsflif on January 05, 2015, 04:53:19 pm
Hey,

Not sure if JoytoKey can do what I need or if I need to look elsewhere.

I have a console emulator setup using Mala as the frontend and two usb snes gamepads for the controls.  I would like to be able to use a gamepad button combination to exit the emulators back to the frontend.  For example select+start+L+R = esc key.  I know I can set the button combo in mame, but most other emulators dont let you map the exit key.

Anyone have know of a good option for me?

Thanks,
Rat
Title: Re: gamepad button combination to keyboard key
Post by: Slippyblade on January 05, 2015, 06:41:11 pm
Not sure if Joy2Key can do that, but I know AutoHotKey can.  I've got my setup to do that.  I'm at work right now but when I get home I'll dig up the AHK script to show ya.
Title: Re: gamepad button combination to keyboard key
Post by: Louis Tully on January 05, 2015, 07:38:54 pm
.
Title: Re: gamepad button combination to keyboard key
Post by: ratsflif on January 06, 2015, 04:32:32 pm
Thanks a lot.  If I have some time tonight I will give it a shot.
Title: Re: gamepad button combination to keyboard key
Post by: ratsflif on January 08, 2015, 01:50:16 pm
Thanks a lot.  If I have some time tonight I will give it a shot.

Thank you much.  It works on my system, it is very picky about the timing though.  You need to hit all 4 exactly at the same time or it doesn't work.  But I am very happy that I can now put the keyboard away and just use the gamepad.
Title: Re: gamepad button combination to keyboard key
Post by: Louis Tully on January 08, 2015, 05:06:10 pm
.
Title: Re: gamepad button combination to keyboard key
Post by: Slippyblade on January 08, 2015, 05:45:16 pm
Yeah, the order of pressing is important just due to the nature of AHK.
Title: Re: gamepad button combination to keyboard key
Post by: ratsflif on January 09, 2015, 11:26:00 am
Ok, I think the timing issue was a dumb mistake on my end.  My snes controllers have a turbo function and I guess I accidentally had turbo turned on for the select button  ???.

Everything is working great except for in my PC Engine emulator (Mednafen).  It refuses to exit from the button combo, I even reduced the button combo down to 2 buttons and it works in every emulator but Mednafen.  Alt+F4 doesnt seem to work in Mednafen even on the keyboard, the default exit key is escape.  So I changed the ahk script to send the "esc" key on the button combo and it works in all the other emulators but Mednafen.  If I press "esc" on the keyboard it exits without issue.
Title: Re: gamepad button combination to keyboard key
Post by: Louis Tully on January 09, 2015, 11:30:06 am
.
Title: Re: gamepad button combination to keyboard key
Post by: ratsflif on January 09, 2015, 02:04:07 pm
Is there a way to send a command to kill the mednafen process from AHK?
Title: Re: gamepad button combination to keyboard key
Post by: Louis Tully on January 09, 2015, 03:29:24 pm
.
Title: Re: gamepad button combination to keyboard key
Post by: ratsflif on January 09, 2015, 07:12:31 pm
Your Awesome, works perfect, thank you.
Title: Re: gamepad button combination to keyboard key
Post by: Louis Tully on January 09, 2015, 07:17:24 pm
.
Title: Re: gamepad button combination to keyboard key
Post by: empardopo on January 28, 2015, 01:14:00 am
Hey,

Not sure if JoytoKey can do what I need or if I need to look elsewhere.

I have a console emulator setup using Mala as the frontend and two usb snes gamepads for the controls.  I would like to be able to use a gamepad button combination to exit the emulators back to the frontend.  For example select+start+L+R = esc key.  I know I can set the button combo in mame, but most other emulators dont let you map the exit key.

Anyone have know of a good option for me?

Thanks,
Rat

You have two options:
+ install and learn Autohotkey
+ to use a program like AllInOneFYC.

Greetings!
Title: Re: gamepad button combination to keyboard key
Post by: eds1275 on January 30, 2015, 05:31:11 pm
Hey ratsflif, a little off topic but you said you were running mala for console emulators. Do you also have mame? I am working on a console only machine and mala sort of forces you to have mame. Do you have a workaround?