diff options
Diffstat (limited to 'src/devices/machine/microtch.cpp')
-rw-r--r-- | src/devices/machine/microtch.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/devices/machine/microtch.cpp b/src/devices/machine/microtch.cpp index eee87447495..f4cddefe26e 100644 --- a/src/devices/machine/microtch.cpp +++ b/src/devices/machine/microtch.cpp @@ -19,11 +19,12 @@ const device_type MICROTOUCH = &device_creator<microtouch_device>; microtouch_device::microtouch_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, MICROTOUCH, "Microtouch Touchscreen", tag, owner, clock, "microtouch", __FILE__), - device_serial_interface(mconfig, *this), + device_serial_interface(mconfig, *this), m_rx_buffer_ptr(0), m_tx_buffer_num(0), m_tx_buffer_ptr(0), m_reset_done(0), m_format(0), m_mode(0), m_last_touch_state(0), + m_last_x(0), m_last_y(0), m_out_stx_func(*this), m_touch(*this, "TOUCH"), m_touchx(*this, "TOUCH_X"), - m_touchy(*this, "TOUCH_Y") + m_touchy(*this, "TOUCH_Y"), m_timer(nullptr), m_output_valid(false), m_output(0) { } @@ -280,7 +281,7 @@ INPUT_CHANGED_MEMBER( microtouch_device::touch ) static INPUT_PORTS_START(microtouch) PORT_START("TOUCH") - PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME( "Touch screen" ) PORT_CHANGED_MEMBER( DEVICE_SELF,microtouch_device, touch, 0 ) + PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME( "Touch screen" ) PORT_CHANGED_MEMBER( DEVICE_SELF,microtouch_device, touch, nullptr ) PORT_START("TOUCH_X") PORT_BIT( 0x3fff, 0x2000, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_SENSITIVITY(45) PORT_KEYDELTA(15) PORT_START("TOUCH_Y") |