diff options
Diffstat (limited to 'src/devices/bus/intv_ctrl/ecs_ctrl.cpp')
-rw-r--r-- | src/devices/bus/intv_ctrl/ecs_ctrl.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/devices/bus/intv_ctrl/ecs_ctrl.cpp b/src/devices/bus/intv_ctrl/ecs_ctrl.cpp index 4b187442585..077c9685c7b 100644 --- a/src/devices/bus/intv_ctrl/ecs_ctrl.cpp +++ b/src/devices/bus/intv_ctrl/ecs_ctrl.cpp @@ -30,7 +30,7 @@ // GLOBAL VARIABLES //************************************************************************** -const device_type INTVECS_CONTROL_PORT = device_creator<intvecs_control_port_device>; +DEFINE_DEVICE_TYPE(INTVECS_CONTROL_PORT, intvecs_control_port_device, "intvecs_control_port", "Mattel Intellivision ECS control port (HACK)") //************************************************************************** @@ -66,8 +66,8 @@ device_intvecs_control_port_interface::~device_intvecs_control_port_interface() //------------------------------------------------- intvecs_control_port_device::intvecs_control_port_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : - device_t(mconfig, INTVECS_CONTROL_PORT, "Mattel Intellivision ECS control port (HACK)", tag, owner, clock, "intvecs_control_port", __FILE__), - device_slot_interface(mconfig, *this), m_device(nullptr) + device_t(mconfig, INTVECS_CONTROL_PORT, tag, owner, clock), + device_slot_interface(mconfig, *this), m_device(nullptr) { } @@ -137,7 +137,7 @@ SLOT_INTERFACE_END // ECS_CTRLS - A pair of hand controllers //------------------------------------------------- -const device_type ECS_CTRLS = device_creator<intvecs_ctrls_device>; +DEFINE_DEVICE_TYPE(ECS_CTRLS, intvecs_ctrls_device, "intvecs_ctrls", "Mattel Intellivision ECS Hand Controller x2 (HACK)") static SLOT_INTERFACE_START( intvecs_controller ) SLOT_INTERFACE("handctrl", INTV_HANDCTRL) @@ -155,7 +155,7 @@ machine_config_constructor intvecs_ctrls_device::device_mconfig_additions() cons } intvecs_ctrls_device::intvecs_ctrls_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : - device_t(mconfig, ECS_CTRLS, "Mattel Intellivision ECS Hand Controller x2 (HACK)", tag, owner, clock, "intvecs_ctrls", __FILE__), + device_t(mconfig, ECS_CTRLS, tag, owner, clock), device_intvecs_control_port_interface(mconfig, *this), m_hand1(*this, "port1"), m_hand2(*this, "port2") @@ -184,7 +184,7 @@ uint8_t intvecs_ctrls_device::read_portB() // ECS_KEYBD - Keyboard //------------------------------------------------- -const device_type ECS_KEYBD = device_creator<intvecs_keybd_device>; +DEFINE_DEVICE_TYPE(ECS_KEYBD, intvecs_keybd_device, "intvecs_keybd", "Mattel Intellivision ECS Keyboard") static INPUT_PORTS_START( intvecs_keybd ) /* @@ -281,7 +281,7 @@ ioport_constructor intvecs_keybd_device::device_input_ports() const } intvecs_keybd_device::intvecs_keybd_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : device_t(mconfig, ECS_KEYBD, "Mattel Intellivision ECS Keyboard", tag, owner, clock, "intvecs_keybd", __FILE__) + : device_t(mconfig, ECS_KEYBD, tag, owner, clock) , device_intvecs_control_port_interface(mconfig, *this) , m_keybd(*this, "ROW.%u", 0) { @@ -320,7 +320,7 @@ void intvecs_keybd_device::write_portA(uint8_t data) // ECS_SYNTH - Synth //------------------------------------------------- -const device_type ECS_SYNTH = device_creator<intvecs_synth_device>; +DEFINE_DEVICE_TYPE(ECS_SYNTH, intvecs_synth_device, "intvecs_synth", "Mattel Intellivision ECS Synthesizer") static INPUT_PORTS_START( intvecs_synth ) @@ -414,7 +414,7 @@ ioport_constructor intvecs_synth_device::device_input_ports() const intvecs_synth_device::intvecs_synth_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : - device_t(mconfig, ECS_SYNTH, "Mattel Intellivision ECS Synthetizer", tag, owner, clock, "intvecs_synth", __FILE__), + device_t(mconfig, ECS_SYNTH, tag, owner, clock), device_intvecs_control_port_interface(mconfig, *this), m_synth(*this, "SYNTH.%u", 0) { |