diff options
Diffstat (limited to 'src/devices/bus/nes_ctrl/pachinko.h')
-rw-r--r-- | src/devices/bus/nes_ctrl/pachinko.h | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/src/devices/bus/nes_ctrl/pachinko.h b/src/devices/bus/nes_ctrl/pachinko.h index f4f7feae596..d70503c6fcf 100644 --- a/src/devices/bus/nes_ctrl/pachinko.h +++ b/src/devices/bus/nes_ctrl/pachinko.h @@ -2,7 +2,7 @@ // copyright-holders:Fabio Priuli /********************************************************************** - Nintendo Family Computer Pachinko Controller + Nintendo Family Computer Coconuts Japan CJPC-102 Pachinko Controller **********************************************************************/ @@ -11,7 +11,7 @@ #pragma once -#include "ctrl.h" +#include "joypad.h" //************************************************************************** @@ -20,28 +20,23 @@ // ======================> nes_pachinko_device -class nes_pachinko_device : public device_t, - public device_nes_control_port_interface +class nes_pachinko_device : public nes_fcpadexp_device { public: // construction/destruction - nes_pachinko_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - - virtual ioport_constructor device_input_ports() const override; + nes_pachinko_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); protected: // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; + virtual ioport_constructor device_input_ports() const override; - virtual uint8_t read_exp(offs_t offset) override; - virtual void write(uint8_t data) override; + virtual void set_latch() override; - required_ioport m_joypad; +private: required_ioport m_trigger; - uint32_t m_latch; }; + // device type definition DECLARE_DEVICE_TYPE(NES_PACHINKO, nes_pachinko_device) |