summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/nes_ctrl/hori.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/nes_ctrl/hori.cpp')
-rw-r--r--src/devices/bus/nes_ctrl/hori.cpp24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/devices/bus/nes_ctrl/hori.cpp b/src/devices/bus/nes_ctrl/hori.cpp
index 80e7dd835aa..1515277abb6 100644
--- a/src/devices/bus/nes_ctrl/hori.cpp
+++ b/src/devices/bus/nes_ctrl/hori.cpp
@@ -59,17 +59,19 @@ static void hori_adapter(device_slot_interface &device)
// device_add_mconfig - add device configuration
//-------------------------------------------------
-MACHINE_CONFIG_START(nes_horitwin_device::device_add_mconfig)
- MCFG_FC_EXPANSION_PORT_ADD("port1", hori_adapter, "joypad")
- MCFG_FC_EXPANSION_PORT_ADD("port2", hori_adapter, "joypad")
-MACHINE_CONFIG_END
-
-MACHINE_CONFIG_START(nes_hori4p_device::device_add_mconfig)
- MCFG_FC_EXPANSION_PORT_ADD("port1", hori_adapter, "joypad")
- MCFG_FC_EXPANSION_PORT_ADD("port2", hori_adapter, "joypad")
- MCFG_FC_EXPANSION_PORT_ADD("port3", hori_adapter, "joypad")
- MCFG_FC_EXPANSION_PORT_ADD("port4", hori_adapter, "joypad")
-MACHINE_CONFIG_END
+void nes_horitwin_device::device_add_mconfig(machine_config &config)
+{
+ NES_CONTROL_PORT(config, "port1", hori_adapter, "joypad");
+ NES_CONTROL_PORT(config, "port2", hori_adapter, "joypad");
+}
+
+void nes_hori4p_device::device_add_mconfig(machine_config &config)
+{
+ NES_CONTROL_PORT(config, "port1", hori_adapter, "joypad");
+ NES_CONTROL_PORT(config, "port2", hori_adapter, "joypad");
+ NES_CONTROL_PORT(config, "port3", hori_adapter, "joypad");
+ NES_CONTROL_PORT(config, "port4", hori_adapter, "joypad");
+}
//**************************************************************************