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: 'Shifted' buttons in MAME?  (Read 1363 times)

0 Members and 1 Guest are viewing this topic.

whines

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 36
  • Last login:June 10, 2024, 04:34:10 pm
'Shifted' buttons in MAME?
« on: October 08, 2009, 09:17:46 am »
I have a pair of pushbuttons located on my coin door that I use for PAUSE and EXIT. (the coindoor has a space for a bill changer--I removed that plate and added a little one to put the buttons in, so it looks nice) These are wired to a hacked gamepad which also gives me the COIN lines.

Is there a way to tell MAME to interpret only BOTH buttons being pressed together as 'EXIT'? It hasn't happened yet, but I'm nervous about someone kneeing it in the middle of a game. When I first put it together I thought you could do that, but it's not letting me, as far as I can tell. Do I need to manually edit the config file?

Ginsu Victim

  • Yeah, owning a MAME cab only leads to owning real ones. MAME just isn't good enough. It's a gateway drug.
  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10092
  • Last login:June 28, 2025, 10:45:55 pm
  • Comanche, OK -- USA
Re: 'Shifted' buttons in MAME?
« Reply #1 on: October 08, 2009, 09:34:41 am »
Go into the TAB settings, controls (general), and set CANCEL UI by pressing pause and exit at the same time.

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: 'Shifted' buttons in MAME?
« Reply #2 on: October 08, 2009, 12:32:14 pm »
Yes, Mame does "and" combos. 

It's a little different than shift keys.  With shift keys, the 'shift' key need to be pressed and held first, then the other 'shifted' key pressed.  With mame's "and" combos, you can use any number of buttons, and as long as mame sees both (all) pressed at the same time, it will count as that input.

Ginsu posted how to map your request.


FWIW, mame can also do "not" combos.  More details at mamedev FAQs.
Robin
Knowledge is Power

Ginsu Victim

  • Yeah, owning a MAME cab only leads to owning real ones. MAME just isn't good enough. It's a gateway drug.
  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10092
  • Last login:June 28, 2025, 10:45:55 pm
  • Comanche, OK -- USA
Re: 'Shifted' buttons in MAME?
« Reply #3 on: October 08, 2009, 12:42:21 pm »
You know, I was scared I might give too short of an answer, but yours was surprisingly short as well. You're slipping. ;D

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: 'Shifted' buttons in MAME?
« Reply #4 on: October 08, 2009, 07:48:42 pm »
You know, I was scared I might give too short of an answer, but yours was surprisingly short as well. You're slipping. ;D

 :blah: :blah: :blah: :blah: :blah: :blah:









 ;)
Robin
Knowledge is Power

whines

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 36
  • Last login:June 10, 2024, 04:34:10 pm
Re: 'Shifted' buttons in MAME?
« Reply #5 on: October 08, 2009, 11:25:47 pm »
Go into the TAB settings, controls (general), and set CANCEL UI by pressing pause and exit at the same time.

I was sure I'd tried that, but apparently I hadn't because it worked just fine! Thank you! :)

Ginsu Victim

  • Yeah, owning a MAME cab only leads to owning real ones. MAME just isn't good enough. It's a gateway drug.
  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10092
  • Last login:June 28, 2025, 10:45:55 pm
  • Comanche, OK -- USA
Re: 'Shifted' buttons in MAME?
« Reply #6 on: October 09, 2009, 08:32:37 am »
Glad you got it working.