The NEW Build Your Own Arcade Controls

Main => Main Forum => Topic started by: fatfingers on October 04, 2006, 10:47:12 am

Title: MAME XML: What does this input type mean?
Post by: fatfingers on October 04, 2006, 10:47:12 am

I have been looking at the output of mame --listxml and I understand lots of it, but have a question about one particular input control type.  One of the lines in question is as follows:

<input players="2" control="stick" buttons="2" coins="4" tilt="yes"/>


The item in question is the control="stick" entry.  Usually I see things like 4way, 8way, etc. here (which all makes sense), but what does "stick" mean?

Thanks!
Title: Re: MAME XML: What does this input type mean?
Post by: Buddabing on October 04, 2006, 11:03:58 am
That's an analog joystick. The XML became a bit clearer in v0.107:

Code: [Select]

<input players="1" buttons="4" coins="2">
<control type="stick" minimum="0" maximum="254" sensitivity="100" keydelta="16"/>
<control type="pedal" minimum="0" maximum="214" sensitivity="100" keydelta="16"/>
</input>

There was only one "control" tag allowed before v0.107.

HTH,
Buddabing
Title: Re: MAME XML: What does this input type mean?
Post by: fatfingers on October 04, 2006, 01:57:24 pm

Thanks Buddabing!  I was assuming it was analog, but wasn't sure!