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: Mame multiple inputs for single command.  (Read 2022 times)

0 Members and 1 Guest are viewing this topic.

johnnybleu

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:November 25, 2009, 01:27:02 pm
Mame multiple inputs for single command.
« on: January 03, 2009, 10:52:34 am »
Alright, I realize the title might be a bit obscure, or sound slightly stupid (and I'm sorry if this has been covered before- I tried to find an answer for about 30 minutes) but here goes.

What I'm trying to do is have Mame quit a game and go back to the FE without having to press esc. Ideally, I'd like to have it mapped to something like "P1 START + P1 BUTTON 1". I tried to do this via the "Tab" menu, with less than great results. You can set multiple keys to a single command, I know, but not simultaneous presses. I tried to find a Mame .cfg file where all this info would be found, and thus changed, but I don't know where it could be. I'm running mameuifx32.

How did you guys set up Mame that you can quit a game using the standard CP buttons (and preferably without an encoder and shift function)?

Many thanks!

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mame multiple inputs for single command.
« Reply #1 on: January 03, 2009, 11:49:46 am »
You can edit cfg\default.cfg to do that. For example the following will mean you have to press the Left Shift + Escape to exit.

Code: [Select]
<?xml version="1.0"?>
<!-- This file is autogenerated; comments and unknown tags will be stripped -->
<mameconfig version="10">
    <system name="default">
        <input>
            <port type="UI_CANCEL">
                <newseq type="standard">
                    KEYCODE_LSHIFT KEYCODE_ESC
                </newseq>
            </port>
        </input>
    </system>
</mameconfig>

johnnybleu

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:November 25, 2009, 01:27:02 pm
Re: Mame multiple inputs for single command.
« Reply #2 on: January 03, 2009, 11:59:52 am »
THANK YOU!!!!

I really feel like an idiot now... It's so simple, but if you don't know it's through the default.cfg, you'll never find out. O_o

Again, thank you- you're turning out to be a BIG help! :notworthy: