From d8c845b7d85884c1e246c6d404579ebf69935d26 Mon Sep 17 00:00:00 2001 From: hap Date: Sun, 30 Jun 2019 01:33:37 +0200 Subject: sboard: ctrl/shift+click no effect for inductive (nw) --- src/devices/machine/sensorboard.cpp | 3 +++ src/mame/machine/smartboard.cpp | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/devices/machine/sensorboard.cpp b/src/devices/machine/sensorboard.cpp index 4bdaa4893f7..420b3a4f6ed 100644 --- a/src/devices/machine/sensorboard.cpp +++ b/src/devices/machine/sensorboard.cpp @@ -194,6 +194,9 @@ sensorboard_device &sensorboard_device::set_type(sb_type type) set_delay(attotime::never); } + if (m_inductive) + set_mod_enable(false); + return *this; } diff --git a/src/mame/machine/smartboard.cpp b/src/mame/machine/smartboard.cpp index 7dd37e2ac54..523cb763be8 100644 --- a/src/mame/machine/smartboard.cpp +++ b/src/mame/machine/smartboard.cpp @@ -107,7 +107,6 @@ void tasc_sb30_device::device_add_mconfig(machine_config &config) SENSORBOARD(config, m_board); m_board->set_type(sensorboard_device::INDUCTIVE); m_board->set_max_id(32); - m_board->set_mod_enable(false); m_board->init_cb().set(FUNC(tasc_sb30_device::init_cb)); m_board->spawn_cb().set(FUNC(tasc_sb30_device::spawn_cb)); } -- cgit v1.2.3