diff options
Diffstat (limited to 'src/devices/bus/gamegear/smsctrladp.cpp')
-rw-r--r-- | src/devices/bus/gamegear/smsctrladp.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/devices/bus/gamegear/smsctrladp.cpp b/src/devices/bus/gamegear/smsctrladp.cpp index 7a5eee4ba4b..0b380cba8a0 100644 --- a/src/devices/bus/gamegear/smsctrladp.cpp +++ b/src/devices/bus/gamegear/smsctrladp.cpp @@ -80,9 +80,10 @@ READ32_MEMBER( sms_ctrl_adaptor_device::pixel_r ) // device_add_mconfig - add device configuration //------------------------------------------------- -MACHINE_CONFIG_START(sms_ctrl_adaptor_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_ctrl_adaptor_device, th_pin_w)) - MCFG_SMS_CONTROL_PORT_PIXEL_HANDLER(READ32(*this, sms_ctrl_adaptor_device, pixel_r)) -MACHINE_CONFIG_END +void sms_ctrl_adaptor_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_ctrl_adaptor_device::th_pin_w)); + m_subctrl_port->pixel_handler().set(FUNC(sms_ctrl_adaptor_device::pixel_r)); +} |