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
This commit is contained in:
Aaron Giles 2009-02-26 09:03:56 +00:00
parent c8bbe7e82c
commit 46533f069b

View File

@ -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