diff options
| author | 2008-10-12 16:07:22 +0000 | |
|---|---|---|
| committer | 2008-10-12 16:07:22 +0000 | |
| commit | 3518ae84ac0e543f8590eb212c6808eea075db2f (patch) | |
| tree | c8c80cabdc0ec29c7c2e2611f1e6ee4dbdb300af /src | |
| parent | 61d2dcd14e555a7b4eeeee6462a42ed138d7a503 (diff) | |
01708: stargrds: stargrds duplicate inputs
Diffstat (limited to 'src')
| -rw-r--r-- | src/mame/drivers/mcr3.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/mame/drivers/mcr3.c b/src/mame/drivers/mcr3.c index 3b9bf4dd127..c8ffa4e81d9 100644 --- a/src/mame/drivers/mcr3.c +++ b/src/mame/drivers/mcr3.c @@ -320,8 +320,10 @@ static WRITE8_HANDLER( powerdrv_op6_w ) static READ8_HANDLER( stargrds_ip0_r ) { - UINT8 result = input_port_read(machine, input_mux ? "MONO.IP0.ALT" : "MONO.IP0"); - return result | ((soundsgood_status_r(machine, 0) << 4) & 0x10); + UINT8 result = input_port_read(machine, "MONO.IP0"); + if (input_mux) + result = (result & ~0x0a) | (input_port_read(machine, "MONO.IP0.ALT") & 0x0a); + return (result & ~0x10) | ((soundsgood_status_r(machine, 0) << 4) & 0x10); } @@ -848,14 +850,11 @@ static INPUT_PORTS_START( stargrds ) PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_RIGHT ) PORT_PLAYER(3) PORT_START("MONO.IP0.ALT") /* IN0 (muxed) */ - PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) - PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN3 ) - PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START1 ) + PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) /* same as MONO.IN0 */ + PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN3 ) + PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) /* same as MONO.IN0 */ PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START3 ) - PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* status from Sounds Good board */ - PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_TILT ) - PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE ) - PORT_SERVICE( 0x80, IP_ACTIVE_LOW ) + PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) /* same as MONO.IN0 */ INPUT_PORTS_END |
