From 1caf8deb7e9fe936e7661aa428e9666ecce3c0bb Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Thu, 15 May 2008 08:09:32 +0000 Subject: [PATCH] From: Fabio Priuli [mailto:priuli@math.ntnu.no] Subject: fix to bug 01791 Hi, enclosed please find a small patch to fix the issues in asterock (asteroid.c) mentioned in bug 01791 the regression happened in 123u2, when asterock was updated to use asteroid inputs. Unfortunately, 3 inputs went from ACTIVE_LOW to ACTIVE_HIGH, among them INPUT_TILT. This was causing the cabinet to be tilted with a twofold effect: * to produce the continuous sound and * to stop any coinage Modifying back those 3 inputs fixes both issues --- src/mame/drivers/asteroid.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mame/drivers/asteroid.c b/src/mame/drivers/asteroid.c index da759620285..7342dd32954 100644 --- a/src/mame/drivers/asteroid.c +++ b/src/mame/drivers/asteroid.c @@ -373,6 +373,10 @@ static INPUT_PORTS_START( asterock ) PORT_MODIFY("IN0") /* Bit 0 is VG_HALT, handled in the machine dependent part */ /* Bit 2 is the 3 KHz source */ + PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_CODE(KEYCODE_SPACE) PORT_CODE(JOYCODE_BUTTON3) /* hyperspace */ + PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_CODE(KEYCODE_LCONTROL) PORT_CODE(JOYCODE_BUTTON1) /* fire */ + PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Diagnostic Step") PORT_CODE(KEYCODE_F1) + PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_TILT ) PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) PORT_MODIFY("DSW")