Fixed MT07153 (SlikStick configuration for asteroid not working).

Since asteroid overrides the default input assignments, slikstik.cfg
needs to use the syntax for overriding specific inputs.  There was also
a bug in how specific input overrides are applied.
This commit is contained in:
Vas Crabb 2021-12-06 03:13:53 +11:00
parent 5839fb7a52
commit 7d1ff26fb3
2 changed files with 8 additions and 5 deletions

View File

@ -176,19 +176,19 @@
-->
<input>
<port type="P1_JOYSTICK_LEFT">
<port tag=":IN1" type="P1_BUTTON1" mask="128">
<newseq type="standard">KEYCODE_LEFT OR JOYCODE_1_XAXIS_LEFT_SWITCH OR KEYCODE_0</newseq>
</port>
<port type="P1_JOYSTICK_RIGHT">
<port tag=":IN1" type="P1_BUTTON2" mask="64">
<newseq type="standard">KEYCODE_RIGHT OR JOYCODE_1_XAXIS_RIGHT_SWITCH OR KEYCODE_Z</newseq>
</port>
<port type="P1_BUTTON1">
<port tag=":IN0" type="P1_BUTTON3" mask="16">
<newseq type="standard">KEYCODE_H OR JOYCODE_1_BUTTON1 OR MOUSECODE_1_BUTTON1</newseq>
</port>
<port type="P1_BUTTON2">
<port tag=":IN1" type="P1_BUTTON4" mask="32">
<newseq type="standard">KEYCODE_7 OR JOYCODE_1_BUTTON2 OR KEYCODE_L</newseq>
</port>
<port type="P1_BUTTON3">
<port tag=":IN0" type="P1_BUTTON5" mask="8">
<newseq type="standard">KEYCODE_9 OR JOYCODE_1_BUTTON3 OR MOUSECODE_1_BUTTON2</newseq>
</port>
</input>

View File

@ -2313,7 +2313,10 @@ bool ioport_manager::load_controller_config(
for (input_seq_type seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; ++seqtype)
{
if (input_seq_good(machine(), newseq[seqtype].first))
{
field.live().seq[seqtype] = newseq[seqtype].first;
field.set_defseq(seqtype, newseq[seqtype].first);
}
}
// fetch configurable attributes