From 46533f069b15a724d7d9c612a1cd40ea272b883f Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Thu, 26 Feb 2009 09:03:56 +0000 Subject: [PATCH] From: Fabio Priuli [mailto:doge.fabio@gmail.com] Sent: Sunday, February 22, 2009 7:06 AM To: submit Subject: fix for MT02920 another small fix. it's very nice to finally have tags passed to device interfaces, despite the few regressions that can have been introduced in the update :) Regards, Fabio Priuli --- src/mame/drivers/arkanoid.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/mame/drivers/arkanoid.c b/src/mame/drivers/arkanoid.c index dace95e3363..561a7fae7e9 100644 --- a/src/mame/drivers/arkanoid.c +++ b/src/mame/drivers/arkanoid.c @@ -692,7 +692,8 @@ static INPUT_PORTS_START( tetrsark ) PORT_START("MUX") PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) - PORT_START("IN4") + /* Inputs are read by the ay8910. For simplicity, we use tags from other sets (even if not appropriate) */ + PORT_START("DSW") PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) @@ -709,7 +710,7 @@ static INPUT_PORTS_START( tetrsark ) PORT_DIPSETTING( 0x40, DEF_STR( 1C_3C ) ) PORT_DIPSETTING( 0x00, DEF_STR( 1C_5C ) ) - PORT_START("IN5") + PORT_START("UNUSED") PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) @@ -720,9 +721,6 @@ static INPUT_PORTS_START( tetrsark ) // PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) // WTF? it does't work PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) - - PORT_START("UNUSED") /* This is read by input_port_4_r in ay8910_interface */ - PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) INPUT_PORTS_END