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: How to configure advanced button combination in MAME?  (Read 2007 times)

0 Members and 1 Guest are viewing this topic.

a_netanel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:August 28, 2022, 11:40:07 am
  • I want to build my own arcade controls!
How to configure advanced button combination in MAME?
« on: April 09, 2019, 10:00:39 am »
How do I set "advanced" button combination in MAME UI? I kinda know how to do it only from the cfg file.
By "advanced" I mean a combination of buttons that exclude another button, for example:
Code: [Select]
<port type="UI_PAUSE">
<newseq type="standard">
JOYCODE_1_BUTTON8 JOYCODE_1_BUTTON10
</newseq>
</port>
<port type="UI_CANCEL">
<newseq type="standard">
JOYCODE_1_BUTTON10 NOT JOYCODE_1_BUTTON8 OR KEYCODE_ESC
</newseq>
</port>
So I can pause with two buttons without triggering a UI_CANCEL.

I'm sure I once read a tutorial that explained it but I'm unable to find it, and mame docs are... not very good...
« Last Edit: April 09, 2019, 10:02:53 am by a_netanel »