summaryrefslogtreecommitdiffstats
path: root/src/devices/bus/astrocde/ctrl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/astrocde/ctrl.h')
-rw-r--r--src/devices/bus/astrocde/ctrl.h98
1 files changed, 0 insertions, 98 deletions
diff --git a/src/devices/bus/astrocde/ctrl.h b/src/devices/bus/astrocde/ctrl.h
deleted file mode 100644
index 0cc34ea4dcc..00000000000
--- a/src/devices/bus/astrocde/ctrl.h
+++ /dev/null
@@ -1,98 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ryan Holtz
-#ifndef MAME_BUS_ASTROCDE_CTRL_H
-#define MAME_BUS_ASTROCDE_CTRL_H
-
-#pragma once
-
-
-/***************************************************************************
- FORWARD DECLARATIONS
- ***************************************************************************/
-
-class device_astrocade_ctrl_interface;
-
-
-/***************************************************************************
- TYPE DEFINITIONS
- ***************************************************************************/
-
-// ======================> astrocade_ctrl_port_device
-
-class astrocade_ctrl_port_device : public device_t, public device_slot_interface
-{
-public:
- // construction/destruction
- template <typename T>
- astrocade_ctrl_port_device(machine_config const &mconfig, char const *tag, device_t *owner, T &&opts, char const *dflt)
- : astrocade_ctrl_port_device(mconfig, tag, owner, 0U)
- {
- option_reset();
- opts(*this);
- set_default_option(dflt);
- set_fixed(false);
- }
- astrocade_ctrl_port_device(machine_config const &mconfig, char const *tag, device_t *owner, uint32_t clock = 0U);
- virtual ~astrocade_ctrl_port_device();
-
- auto ltpen_handler() { return m_ltpen_handler.bind(); }
-
- uint8_t read_handle();
- uint8_t read_knob();
-
-protected:
- // device_t implementation
- virtual void device_validity_check(validity_checker &valid) const override ATTR_COLD;
- virtual void device_resolve_objects() override;
- virtual void device_start() override;
-
- int m_ltpen;
- devcb_write_line m_ltpen_handler;
-
-private:
- device_astrocade_ctrl_interface *m_device;
-
- friend class device_astrocade_ctrl_interface;
-};
-
-
-// ======================> device_astrocade_ctrl_interface
-
-class device_astrocade_ctrl_interface : public device_slot_card_interface
-{
-public:
- virtual ~device_astrocade_ctrl_interface();
-
- virtual uint8_t read_handle() { return 0; }
- virtual uint8_t read_knob() { return 0; }
-
- DECLARE_WRITE_LINE_MEMBER( write_ltpen ) { m_port->m_ltpen = state; m_port->m_ltpen_handler(state); }
-
-protected:
- device_astrocade_ctrl_interface(machine_config const &mconfig, device_t &device);
-
- // device_interface implementation
- virtual void interface_validity_check(validity_checker &valid) const override ATTR_COLD;
- virtual void interface_pre_start() override;
-
-private:
- astrocade_ctrl_port_device *const m_port;
-
- friend class astrocade_ctrl_port_device;
-};
-
-
-/***************************************************************************
- FUNCTIONS
- ***************************************************************************/
-
-void astrocade_controllers(device_slot_interface &device);
-
-
-/***************************************************************************
- DEVICE TYPES
- ***************************************************************************/
-
-DECLARE_DEVICE_TYPE(ASTROCADE_CTRL_PORT, astrocade_ctrl_port_device)
-
-#endif // MAME_BUS_ASTROCDE_CTRL_H