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: gamepad button combination to keyboard key  (Read 5900 times)

0 Members and 1 Guest are viewing this topic.

ratsflif

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 85
  • Last login:January 29, 2024, 06:08:07 pm
gamepad button combination to keyboard key
« 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

Slippyblade

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3167
  • Last login:June 05, 2024, 10:30:57 am
  • And to the death god we say, "Not today!"
Re: gamepad button combination to keyboard key
« Reply #1 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.

Louis Tully

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1800
  • Last login:February 13, 2015, 09:41:03 pm
Re: gamepad button combination to keyboard key
« Reply #2 on: January 05, 2015, 07:38:54 pm »
.
« Last Edit: February 12, 2015, 06:54:03 pm by Louis Tully »

ratsflif

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 85
  • Last login:January 29, 2024, 06:08:07 pm
Re: gamepad button combination to keyboard key
« Reply #3 on: January 06, 2015, 04:32:32 pm »
Thanks a lot.  If I have some time tonight I will give it a shot.

ratsflif

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 85
  • Last login:January 29, 2024, 06:08:07 pm
Re: gamepad button combination to keyboard key
« Reply #4 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.

Louis Tully

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1800
  • Last login:February 13, 2015, 09:41:03 pm
Re: gamepad button combination to keyboard key
« Reply #5 on: January 08, 2015, 05:06:10 pm »
.
« Last Edit: February 12, 2015, 06:55:51 pm by Louis Tully »

Slippyblade

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3167
  • Last login:June 05, 2024, 10:30:57 am
  • And to the death god we say, "Not today!"
Re: gamepad button combination to keyboard key
« Reply #6 on: January 08, 2015, 05:45:16 pm »
Yeah, the order of pressing is important just due to the nature of AHK.

ratsflif

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 85
  • Last login:January 29, 2024, 06:08:07 pm
Re: gamepad button combination to keyboard key
« Reply #7 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.

Louis Tully

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1800
  • Last login:February 13, 2015, 09:41:03 pm
Re: gamepad button combination to keyboard key
« Reply #8 on: January 09, 2015, 11:30:06 am »
.
« Last Edit: February 12, 2015, 06:55:56 pm by Louis Tully »

ratsflif

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 85
  • Last login:January 29, 2024, 06:08:07 pm
Re: gamepad button combination to keyboard key
« Reply #9 on: January 09, 2015, 02:04:07 pm »
Is there a way to send a command to kill the mednafen process from AHK?

Louis Tully

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1800
  • Last login:February 13, 2015, 09:41:03 pm
Re: gamepad button combination to keyboard key
« Reply #10 on: January 09, 2015, 03:29:24 pm »
.
« Last Edit: February 12, 2015, 06:56:07 pm by Louis Tully »

ratsflif

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 85
  • Last login:January 29, 2024, 06:08:07 pm
Re: gamepad button combination to keyboard key
« Reply #11 on: January 09, 2015, 07:12:31 pm »
Your Awesome, works perfect, thank you.

Louis Tully

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1800
  • Last login:February 13, 2015, 09:41:03 pm
Re: gamepad button combination to keyboard key
« Reply #12 on: January 09, 2015, 07:17:24 pm »
.
« Last Edit: February 12, 2015, 06:56:21 pm by Louis Tully »

empardopo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 526
  • Last login:Yesterday at 05:12:51 am
    • My personal forum
Re: gamepad button combination to keyboard key
« Reply #13 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!

eds1275

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2165
  • Last login:July 13, 2025, 01:10:24 pm
  • Rock and Roll!
Re: gamepad button combination to keyboard key
« Reply #14 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?