Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
04871 DIP/Input Minor Always May 25, 2012, 21:52 May 27, 2012, 00:12
Tester M.A.S.H. View Status Public Platform MAME (Self-compiled)
Assigned To M.A.S.H. Resolution Fixed OS Windows XP
Status [?] Resolved Driver
Version 0.146 Fixed in Version 0.146u1 Build Normal
Fixed in Git Commit Github Pull Request #
Summary 04871: topspeed: Missing PORT_TOGGLE and wrong built-in layout
Description Gear "Shift" is always set to HIGH in Top Speed. If you added PORT_TOGGLE to the Gear input, then you can
change to low.

Changed line 542 in drivers\topspeed.c from
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_PLAYER(1) /* gear shift lo/hi */
to
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_PLAYER(1) PORT_TOGGLE /* gear shift lo/hi */


Also the built-in layout is wrong. LOW = HIGH and HIGH = LOW
With LOW you can only drive 200 km/h. With HIGH over 300 km/h.

Changed lines 24 and 28 in mame\layout\topspeed.lay from

<text string="LOW" state="1">
<text string="LOW" state="0">
to
<text string="HIGH" state="1">
<text string="HIGH" state="0">


and lines 33 and 37 from

<text string="HIGH" state="1">
<text string="HIGH" state="0">
to
<text string="LOW" state="1">
<text string="LOW" state="0">
Steps To Reproduce
Additional Information
Github Commit
Flags
Regression Version
Affected Sets / Systems topspeed
Attached Files
png file icon topspeed-0.146.png (5,650 bytes) May 25, 2012, 21:58 Uploaded by M.A.S.H.
M.A.S.H.
Relationships
There are no relationship linked to this issue.
Notes
1
User avatar
No.08669
hap
Developer
May 27, 2012, 00:12
layout works fine as-is here