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: Unexpected <newseq> values in mame default.cfg?  (Read 1986 times)

0 Members and 1 Guest are viewing this topic.

arzoo

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2093
  • Last login:January 26, 2025, 08:51:53 am
  • Robots WILL kill you.
    • LEDBlinky
Unexpected <newseq> values in mame default.cfg?
« on: November 08, 2016, 01:53:15 pm »
I'm hoping someone can help me out with some unexpected input values I'm seeing in a MAME default.cfg file. The default.cfg file I've been provided (by a LEDBlinky user) has some nodes like this:
Code: [Select]
            <port type="P1_JOYSTICKRIGHT_UP">
                <newseq type="standard">
                    KEYCODE_I OR KEYCODE_3_RIGHT KEYCODE_3_UP OR JOYCODE_1_XAXIS_RIGHT_SWITCH JOYCODE_1_YAXIS_UP_SWITCH
                </newseq>
            </port>

There's two things strange about the <newseq> node;
First, what input is KEYCODE_3_RIGHT? Usually a keyboard input would be KEYCODE_<key>, not KEYCODE_<n>_<key>. Is <n> some index for the keyboard?
And second, multiple input codes are usually separated by "OR", but in this example there are two input codes separated with just a space.
JOYCODE_1_XAXIS_RIGHT_SWITCH JOYCODE_1_YAXIS_UP_SWITCH
Does the space indicated something different than the OR?

I can't find any mame documentation that describes the current .cfg xml schema. Can anyone explain or point me in the right direction? Thanks!
Robots will kill you.



Arcade Addiction

arzoo

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2093
  • Last login:January 26, 2025, 08:51:53 am
  • Robots WILL kill you.
    • LEDBlinky
Re: Unexpected <newseq> values in mame default.cfg?
« Reply #1 on: November 09, 2016, 08:37:34 pm »
Never-mind, I figured it out. <n> is the keyboard index when multiple keyboard (or encoders are used) and inputs without an OR are combined (like joystick diagonal). Seems obvious now.
Robots will kill you.



Arcade Addiction