model2: Fix input issue with srallyc (possibly others)

This commit is contained in:
Dirk Best 2018-05-02 14:26:54 +02:00
parent 6efb37250f
commit 4badd94ad7

View File

@ -1618,7 +1618,7 @@ READ8_MEMBER( model2_state::in0_r )
uint8_t data = m_in0->read();
if (m_ctrlmode)
return (data & 0xc0) | (m_eeprom->do_read() << 5) | (data & 0x1f);
return (0xc0) | (m_eeprom->do_read() << 5) | (0x10) | (data & 0x0f);
else
return data;
}
@ -1665,7 +1665,8 @@ static INPUT_PORTS_START( model2 )
PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_SERVICE1)
PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_START1)
PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_START2)
PORT_BIT(0xc0, IP_ACTIVE_LOW, IPT_UNUSED)
PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_UNUSED)
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_UNUSED)
PORT_START("IN1")
PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_BUTTON1) PORT_PLAYER(1)
@ -2150,7 +2151,6 @@ static INPUT_PORTS_START( waverunr )
PORT_MODIFY("IN0")
PORT_BIT(0x32, IP_ACTIVE_LOW, IPT_UNUSED)
PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_START1)
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_UNUSED)
PORT_MODIFY("IN1")
PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_BUTTON1) PORT_NAME("View")
@ -2211,7 +2211,6 @@ static INPUT_PORTS_START( segawski )
PORT_MODIFY("IN0")
PORT_BIT(0x32, IP_ACTIVE_LOW, IPT_UNUSED)
PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_BUTTON5) PORT_NAME("Select (Down)")
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_UNUSED)
PORT_MODIFY("IN1")
PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_BUTTON4) PORT_NAME("Set")