diff options
Diffstat (limited to 'src/devices/bus/coleco/controller/sac.h')
-rw-r--r-- | src/devices/bus/coleco/controller/sac.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/devices/bus/coleco/controller/sac.h b/src/devices/bus/coleco/controller/sac.h new file mode 100644 index 00000000000..20078e33ef7 --- /dev/null +++ b/src/devices/bus/coleco/controller/sac.h @@ -0,0 +1,55 @@ +// license:BSD-3-Clause +// copyright-holders:Curt Coder +/********************************************************************** + + ColecoVision Super Action Controller emulation + +**********************************************************************/ + +#ifndef MAME_BUS_COLECO_SAC_H +#define MAME_BUS_COLECO_SAC_H + +#pragma once + +#include "ctrl.h" + + + +//************************************************************************** +// TYPE DEFINITIONS +//************************************************************************** + +// ======================> coleco_super_action_controller_device + +class coleco_super_action_controller_device : public device_t, + public device_colecovision_control_port_interface +{ +public: + // construction/destruction + coleco_super_action_controller_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + + // optional information overrides + virtual ioport_constructor device_input_ports() const override; + + DECLARE_CUSTOM_INPUT_MEMBER( keypad_r ); + DECLARE_INPUT_CHANGED_MEMBER( slider_w ); + +protected: + // device-level overrides + virtual void device_start() override; + + // device_vcs_control_port_interface overrides + virtual uint8_t joy_r() override; + +private: + required_ioport m_io_common0; + required_ioport m_io_common1; + required_ioport m_io_keypad; +}; + + +// device type definition +DECLARE_DEVICE_TYPE(COLECO_SUPER_ACTION_CONTROLLER, coleco_super_action_controller_device) + + +#endif // MAME_BUS_COLECO_SAC_H |