summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/intv_ctrl/ecs_ctrl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/intv_ctrl/ecs_ctrl.cpp')
-rw-r--r--src/devices/bus/intv_ctrl/ecs_ctrl.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/devices/bus/intv_ctrl/ecs_ctrl.cpp b/src/devices/bus/intv_ctrl/ecs_ctrl.cpp
index ea3118619f9..e90292de645 100644
--- a/src/devices/bus/intv_ctrl/ecs_ctrl.cpp
+++ b/src/devices/bus/intv_ctrl/ecs_ctrl.cpp
@@ -118,11 +118,12 @@ void intvecs_control_port_device::write_portA(uint8_t data)
// SLOT_INTERFACE( intvecs_control_port_devices )
//-------------------------------------------------
-SLOT_INTERFACE_START( intvecs_control_port_devices )
- SLOT_INTERFACE("ctrls", ECS_CTRLS)
- SLOT_INTERFACE("keybd", ECS_KEYBD)
- SLOT_INTERFACE("synth", ECS_SYNTH)
-SLOT_INTERFACE_END
+void intvecs_control_port_devices(device_slot_interface &device)
+{
+ device.option_add("ctrls", ECS_CTRLS);
+ device.option_add("keybd", ECS_KEYBD);
+ device.option_add("synth", ECS_SYNTH);
+}
@@ -139,9 +140,10 @@ SLOT_INTERFACE_END
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)
-SLOT_INTERFACE_END
+static void intvecs_controller(device_slot_interface &device)
+{
+ device.option_add("handctrl", INTV_HANDCTRL);
+}
MACHINE_CONFIG_START(intvecs_ctrls_device::device_add_mconfig)
MCFG_INTV_CONTROL_PORT_ADD("port1", intvecs_controller, "handctrl")