diff options
author | 2019-03-25 23:13:40 +0100 | |
---|---|---|
committer | 2019-03-25 23:13:40 +0100 | |
commit | b380514764cf857469bae61c11143a19f79a74c5 (patch) | |
tree | 63c8012e262618f08a332da31dd714281aa2c5ed /src/devices/bus/sms_ctrl/rfu.cpp | |
parent | c24473ddff715ecec2e258a6eb38960cf8c8e98e (diff) |
Revert "conflict resolution (nw)"
This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing
changes made to 009cba4fb8102102168ef32870892438327f3705.
Diffstat (limited to 'src/devices/bus/sms_ctrl/rfu.cpp')
-rw-r--r-- | src/devices/bus/sms_ctrl/rfu.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/devices/bus/sms_ctrl/rfu.cpp b/src/devices/bus/sms_ctrl/rfu.cpp index 36a081abcd1..7b51da5983a 100644 --- a/src/devices/bus/sms_ctrl/rfu.cpp +++ b/src/devices/bus/sms_ctrl/rfu.cpp @@ -138,9 +138,8 @@ READ32_MEMBER( sms_rapid_fire_device::pixel_r ) } -void sms_rapid_fire_device::device_add_mconfig(machine_config &config) -{ - SMS_CONTROL_PORT(config, m_subctrl_port, sms_control_port_devices, "joypad"); - m_subctrl_port->th_input_handler().set(FUNC(sms_rapid_fire_device::th_pin_w)); - m_subctrl_port->pixel_handler().set(FUNC(sms_rapid_fire_device::pixel_r)); -} +MACHINE_CONFIG_START(sms_rapid_fire_device::device_add_mconfig) + MCFG_SMS_CONTROL_PORT_ADD("ctrl", sms_control_port_devices, "joypad") + MCFG_SMS_CONTROL_PORT_TH_INPUT_HANDLER(WRITELINE(*this, sms_rapid_fire_device, th_pin_w)) + MCFG_SMS_CONTROL_PORT_PIXEL_HANDLER(READ32(*this, sms_rapid_fire_device, pixel_r)) +MACHINE_CONFIG_END |