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: emulating esc key on a joystick. - HELP  (Read 4912 times)

0 Members and 1 Guest are viewing this topic.

michelevit

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 412
  • Last login:December 25, 2024, 06:57:41 pm
emulating esc key on a joystick. - HELP
« on: October 08, 2007, 07:50:31 pm »
i have a mame cab that i built which i thought was completely done, except....

i recently updated my mame32fx and dumped more marquees and cab pics into it
and now the hidden joystick ??? key which emulates a ESC command doesnt wotk.

My cab has three admin buttons hidden underneath the control panel. These are
little micro switches which are mapped to pause, credit and ESC.

The mame is configed to recognize these buttons except for the ESC key which I guess is
not mappable with MAME.

So i was using autohotkey to remap that joystick key to emulate ESC which gets me
out of the game without reaching for my wireless keyboard.

now that i updated to the latest version of mame32fx, the esc key is not emulated properly with AUTOHOTKEY.
It works in the windows environment, but it doesn't work in mame.

Any advice is greatly appreciated. It really bothers me that this used to work, and now
that I upgraded my Mame, its broken.

I know the button itself works,
the autohot key script is the same
and ESC is emulated everytime, except for in MAME when I need it.
I also installed JOY2KEY and it also doesnt work.

Thanks again for the great forum and I look forward to finding the answer.

gonzo90017

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1034
  • Last login:June 23, 2019, 02:41:07 pm
  • I'm a llama!
Re: emulating esc key on a joystick. - HELP
« Reply #1 on: October 08, 2007, 10:22:03 pm »
Those programs don't work anymore. You have to use a mame version older than 118. It's also discussed here http://forum.arcadecontrols.com/index.php?topic=71931.0

michelevit

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 412
  • Last login:December 25, 2024, 06:57:41 pm
Re: emulating esc key on a joystick. - HELP
« Reply #2 on: October 09, 2007, 12:45:47 am »
any suggestions?
everything is buttoned up and I'd love to exit the mame game
with the hidden joystick button.

I have a bunch of usb keyboards salvaged so I can probally do a keyboard hack.

software would be easier.

gonzo90017

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1034
  • Last login:June 23, 2019, 02:41:07 pm
  • I'm a llama!
Re: emulating esc key on a joystick. - HELP
« Reply #3 on: October 09, 2007, 12:52:52 am »
You don't have to use the newest version of mame. I'm using Mame 37  :laugh:
Just use 117.

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re: emulating esc key on a joystick. - HELP
« Reply #4 on: October 10, 2007, 01:23:07 pm »
software would be easier.

You're only using mame, right?

Stop using the joy2key software, and map joyXbuttonY (whatever the button really is) to mame's "UI Cancel" input.  (Start game, tab or whatever you have mapped to mame's "Config Menu", input general, User Interface, UI Cancel, enter, that button you want.)
Robin
Knowledge is Power

michelevit

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 412
  • Last login:December 25, 2024, 06:57:41 pm
Re: emulating esc key on a joystick. - HELP
« Reply #5 on: October 10, 2007, 04:35:41 pm »
that WORKED!
thanks a million. I didn't think that command was remappable.
thanks again and thanks for this great forum. now i can escape
a game without using my keyboard.



Dariusz

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 195
  • Last login:November 23, 2018, 02:41:36 pm
  • I want to Build My Own Arcade Controls!!
Re: emulating esc key on a joystick. - HELP
« Reply #6 on: October 11, 2007, 05:48:36 pm »
Question:

Once the mame ui input has been configured using the joystick on a game, does it apply to all games, or do you have to configure the joystick for induvidualy for all games?

Also does the mame ui input allow for hot keys (ie. when two bottons are pressesd at the same time, the esc command is applied?).

Thanks

Draiusz

gonzo90017

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1034
  • Last login:June 23, 2019, 02:41:07 pm
  • I'm a llama!
Re: emulating esc key on a joystick. - HELP
« Reply #7 on: October 11, 2007, 06:08:15 pm »
Quote
Question:

Once the mame ui input has been configured using the joystick on a game, does it apply to all games

Yes. If you configured it through "Input (general)".

Quote
Also does the mame ui input allow for hot keys (ie. when two bottons are pressesd at the same time, the esc command is applied?).

Yes.

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re: emulating esc key on a joystick. - HELP
« Reply #8 on: October 11, 2007, 07:37:02 pm »
Quote
Also does the mame ui input allow for hot keys (ie. when two bottons are pressesd at the same time, the esc command is applied?).

Yes.

To expand on this:

To map hot keys, do it like normal but press the keys you want mapped at the same time (within + or - about half a sec).

To map "this" OR "that", do it like normal but only press "this", wait until the mame UI shows the new map (about a second), press enter then press "that".

Mame can have as many as 16 keys, buttons, and ORs mapped at once.  IOW, a 16 key hot key, an 8 key hot key + OR + a 7 key hot key, etc.
Robin
Knowledge is Power