summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/magtouch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/magtouch.cpp')
-rw-r--r--src/mame/drivers/magtouch.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mame/drivers/magtouch.cpp b/src/mame/drivers/magtouch.cpp
index 5be7b28db81..9649d47af2e 100644
--- a/src/mame/drivers/magtouch.cpp
+++ b/src/mame/drivers/magtouch.cpp
@@ -189,8 +189,7 @@ DEVICE_INPUT_DEFAULTS_END
void magtouch_state::magtouch_sb_conf(device_t *device)
{
- device = device->subdevice("pc_joy");
- MCFG_DEVICE_SLOT_INTERFACE(pc_joysticks, nullptr, true) // remove joystick
+ device->subdevice<pc_joy_device>("pc_joy")->set_default_option(nullptr); // remove joystick
}
void magtouch_state::magtouch(machine_config &config)