summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/snes_ctrl/ctrl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/snes_ctrl/ctrl.cpp')
-rw-r--r--src/devices/bus/snes_ctrl/ctrl.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/devices/bus/snes_ctrl/ctrl.cpp b/src/devices/bus/snes_ctrl/ctrl.cpp
index 09079bd9c91..c628a049b8c 100644
--- a/src/devices/bus/snes_ctrl/ctrl.cpp
+++ b/src/devices/bus/snes_ctrl/ctrl.cpp
@@ -61,7 +61,10 @@ device_snes_control_port_interface::~device_snes_control_port_interface()
snes_control_port_device::snes_control_port_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
device_t(mconfig, SNES_CONTROL_PORT, tag, owner, clock),
- device_slot_interface(mconfig, *this), m_device(nullptr)
+ device_slot_interface(mconfig, *this),
+ m_onscreen_cb(*this),
+ m_gunlatch_cb(*this),
+ m_device(nullptr)
{
}
@@ -82,8 +85,8 @@ snes_control_port_device::~snes_control_port_device()
void snes_control_port_device::device_start()
{
m_device = dynamic_cast<device_snes_control_port_interface *>(get_card_device());
- m_onscreen_cb.bind_relative_to(*owner());
- m_gunlatch_cb.bind_relative_to(*owner());
+ m_onscreen_cb.resolve();
+ m_gunlatch_cb.resolve();
}