Main > Main Forum

MAME XML: What does this input type mean?

Pages: (1/1)

fatfingers:


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!


Buddabing:

That's an analog joystick. The XML became a bit clearer in v0.107:


--- Code: ---
<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>

--- End code ---

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

HTH,
Buddabing


fatfingers:


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


Pages: (1/1)

Go to full version