diff options
Diffstat (limited to 'src/devices/bus/snes_ctrl/pachinko.h')
-rw-r--r-- | src/devices/bus/snes_ctrl/pachinko.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/src/devices/bus/snes_ctrl/pachinko.h b/src/devices/bus/snes_ctrl/pachinko.h new file mode 100644 index 00000000000..ae47adc40b4 --- /dev/null +++ b/src/devices/bus/snes_ctrl/pachinko.h @@ -0,0 +1,56 @@ +// license:BSD-3-Clause +// copyright-holders:Fabio Priuli +/********************************************************************** + + Nintendo Super Famicom - Sunsoft Pachinko Controller + +**********************************************************************/ + +#pragma once + +#ifndef __SNES_PACHINKO__ +#define __SNES_PACHINKO__ + + +#include "emu.h" +#include "ctrl.h" + +//************************************************************************** +// TYPE DEFINITIONS +//************************************************************************** + +// ======================> snes_pachinko_device + +class snes_pachinko_device : public device_t, + public device_snes_control_port_interface +{ +public: + // construction/destruction + snes_pachinko_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + + // optional information overrides + virtual ioport_constructor device_input_ports() const; + +protected: + // device-level overrides + virtual void device_start(); + virtual void device_reset(); + + // device_sms_control_port_interface overrides + virtual UINT8 read_pin4(); + virtual void write_strobe(UINT8 data); + virtual void port_poll(); + +private: + required_ioport m_dial; + required_ioport m_button; + int m_strobe; + UINT32 m_latch; +}; + + +// device type definition +extern const device_type SNES_PACHINKO; + + +#endif |