summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-08-10 10:08:38 -0400
committer AJR <ajrhacker@users.noreply.github.com>2018-08-10 10:08:38 -0400
commit455950ec24807a3fb1830baee74bfc345a5b042b (patch)
tree28ee0a7ba6fbb6d0ef9295c668d8c3b610856eb9
parente11ae7f5a368af2a853ee021b5c116f7c405af49 (diff)
neogeo: Add start buttons to dial controller (MT 07073)
-rw-r--r--src/devices/bus/neogeo_ctrl/dial.cpp17
-rw-r--r--src/devices/bus/neogeo_ctrl/dial.h2
2 files changed, 18 insertions, 1 deletions
diff --git a/src/devices/bus/neogeo_ctrl/dial.cpp b/src/devices/bus/neogeo_ctrl/dial.cpp
index f8aeb88b1f0..9f4bd75066d 100644
--- a/src/devices/bus/neogeo_ctrl/dial.cpp
+++ b/src/devices/bus/neogeo_ctrl/dial.cpp
@@ -40,6 +40,11 @@ static INPUT_PORTS_START( neogeo_dial )
PORT_START("DIAL2")
PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(20) 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
@@ -67,7 +72,8 @@ neogeo_dial_device::neogeo_dial_device(const machine_config &mconfig, const char
m_joy1(*this, "JOY1"),
m_joy2(*this, "JOY2"),
m_dial1(*this, "DIAL1"),
- m_dial2(*this, "DIAL2")
+ m_dial2(*this, "DIAL2"),
+ m_ss(*this, "START")
{
}
@@ -130,3 +136,12 @@ void neogeo_dial_device::write_ctrlsel(uint8_t data)
{
m_ctrl_sel = data;
}
+
+//-------------------------------------------------
+// read_start_sel
+//-------------------------------------------------
+
+uint8_t neogeo_dial_device::read_start_sel()
+{
+ return m_ss->read();
+}
diff --git a/src/devices/bus/neogeo_ctrl/dial.h b/src/devices/bus/neogeo_ctrl/dial.h
index d3466025642..e532d11d195 100644
--- a/src/devices/bus/neogeo_ctrl/dial.h
+++ b/src/devices/bus/neogeo_ctrl/dial.h
@@ -38,12 +38,14 @@ protected:
virtual DECLARE_READ8_MEMBER( in0_r ) override;
virtual DECLARE_READ8_MEMBER( in1_r ) override;
virtual void write_ctrlsel(uint8_t data) override;
+ virtual uint8_t read_start_sel() override;
private:
required_ioport m_joy1;
required_ioport m_joy2;
required_ioport m_dial1;
required_ioport m_dial2;
+ required_ioport m_ss;
uint8_t m_ctrl_sel;
};