Skip to content

Commit

Permalink
Fixed MT07153 (SlikStick configuration for asteroid not working).
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cuavas committed Dec 5, 2021
1 parent 5839fb7 commit 7d1ff26
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ctrlr/slikstik.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 3 additions & 0 deletions src/emu/ioport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7d1ff26

Please sign in to comment.