summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/neogeo_ctrl/joystick.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2018-04-28 21:11:02 +1000
committer Vas Crabb <vas@vastheman.com>2018-04-28 21:32:21 +1000
commit69ab2c544ba32b617abdefe0e2c4406c43077bfd (patch)
tree972e0f92dcac19941e23074a3e952a4d713e269f /src/devices/bus/neogeo_ctrl/joystick.cpp
parentf2568bb918b8e551c1b95d4a86cf07ae192cbe80 (diff)
neogeo updates:
* move start buttons to controllers, clean up FTC1B a little * SIT and FTC1B are only compatible with MV-1B/MV-1C cost-reduced boards
Diffstat (limited to 'src/devices/bus/neogeo_ctrl/joystick.cpp')
-rw-r--r--src/devices/bus/neogeo_ctrl/joystick.cpp27
1 files changed, 16 insertions, 11 deletions
diff --git a/src/devices/bus/neogeo_ctrl/joystick.cpp b/src/devices/bus/neogeo_ctrl/joystick.cpp
index 83c0513be95..045e593895c 100644
--- a/src/devices/bus/neogeo_ctrl/joystick.cpp
+++ b/src/devices/bus/neogeo_ctrl/joystick.cpp
@@ -144,6 +144,11 @@ static INPUT_PORTS_START( neogeo_joy_ac )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2)
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2)
+
+ PORT_START("START")
+ PORT_BIT( 0xfa, IP_ACTIVE_LOW, IPT_UNUSED )
+ PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
+ PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START2 )
INPUT_PORTS_END
@@ -167,8 +172,8 @@ ioport_constructor neogeo_joy_ac_device::device_input_ports() const
neogeo_joy_ac_device::neogeo_joy_ac_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
device_t(mconfig, NEOGEO_JOY_AC, tag, owner, clock),
device_neogeo_ctrl_edge_interface(mconfig, *this),
- m_joy1(*this, "JOY1"),
- m_joy2(*this, "JOY2")
+ m_joy(*this, "JOY%u", 1U),
+ m_ss(*this, "START")
{
}
@@ -182,28 +187,28 @@ void neogeo_joy_ac_device::device_start()
//-------------------------------------------------
-// device_reset - device-specific reset
+// in0_r
//-------------------------------------------------
-void neogeo_joy_ac_device::device_reset()
+READ8_MEMBER(neogeo_joy_ac_device::in0_r)
{
+ return m_joy[0]->read();
}
-
//-------------------------------------------------
-// in0_r
+// in1_r
//-------------------------------------------------
-READ8_MEMBER(neogeo_joy_ac_device::in0_r)
+READ8_MEMBER(neogeo_joy_ac_device::in1_r)
{
- return m_joy1->read();
+ return m_joy[1]->read();
}
//-------------------------------------------------
-// in1_r
+// read_start_sel
//-------------------------------------------------
-READ8_MEMBER(neogeo_joy_ac_device::in1_r)
+uint8_t neogeo_joy_ac_device::read_start_sel()
{
- return m_joy2->read();
+ return m_ss->read();
}