summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Dirk Best <mail@dirk-best.de>2018-05-02 14:26:54 +0200
committer Dirk Best <mail@dirk-best.de>2018-05-02 15:44:54 +0200
commit4badd94ad7cbef701b3788a2be079b44dbdada73 (patch)
treec3b15dfc04c94b51241e0369ee8dc25705ec6092
parent6efb37250fde2ff84629841149098f54642c5c7b (diff)
model2: Fix input issue with srallyc (possibly others)
-rw-r--r--src/mame/drivers/model2.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mame/drivers/model2.cpp b/src/mame/drivers/model2.cpp
index 7ae2caac2ea..ed5ac197b32 100644
--- a/src/mame/drivers/model2.cpp
+++ b/src/mame/drivers/model2.cpp
@@ -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")