Disabling and prioritising touch
This document describes how to disable touch for one or all devices, how to delay touch at start-up, how to give one touch device priority over others (interlock), and whether touch works on the login screen, for UPDD V6 and V7 on Windows, macOS and Linux.
The settings named here are explained in context; the full list of settings is in the Driver settings reference.
Disabling touch
Occasionally you may wish to disable touch for a device or for all devices. This can be achieved in the following ways:
| Method | Description |
| Setting enabled | The enabled global (nodevice) or device setting can be set to 0 so that received touch data is not delivered to any interface or to the driver's API, so touch on the device is totally inactive. The device remains connected and active. A default of 1 is implied if this setting is not present. A global disabled takes priority over a device enabled, and a device disabled takes priority over a global enabled. In the UPDD Console this is the Enabled entry in the General tab (global) and the Touch tab (device). e.g. upddutils nodevice set enabled 0 |
| Interface, UPDD V7 | The global settings touch_interface.enabled (touch devices) and pen_interface.enabled (pen devices) can be set to 0 so that the data is not passed to the selected pointer interface. The data is still delivered on the driver's API, so UPDD client applications (for example UPDD Commander) continue to receive it. e.g. upddutils nodevice set touch_interface.enabled 0 |
| Interface, UPDD V6 | The active_touch_interface device setting informs the driver which interface to post touch data to. If this setting is set to an unknown value, such as 'none', the incoming data is not posted to any interface other than the driver's own API, to satisfy any UPDD client applications. This will disable touch if the driver is responsible for the touch function. |
| UPDD Commander | If UPDD Commander is in control of touch, disabling the driver's interface does not disable touch, because Commander receives touches on the API. Use the enabled setting instead. |
Disabling touch at start-up
The global setting startup.disable_touch_until can be used to disable touch at start-up. At driver start, it indicates when the global enabled setting is set:
| Value | Meaning |
| client | The enabled setting is set to true when the first client connection is made (e.g. when the UPDD Daemon starts). |
| A number | The enabled setting is set to true after the defined number of seconds has elapsed. |
| Any other value | The enabled setting is set to false, preventing any touches. In this case enabled must be set by some external means, such as the UPDD command line interface: upddutils nodevice set enabled 1 |
This setting currently applies to USB devices only.
Disabling touch over part of the screen
To make part of the screen untouchable rather than the whole device, define a toolbar over that area: see the screen masking example in Toolbars.
Touch priority (interlock)
Touch data is posted into the operating system using a number of different interfaces (see What UPDD is and how touch reaches your applications).
When multiple touch devices are in use, touching more than one device at the same time may cause undesired results, especially in the case of an operating system that is single user, single pointer, or if the selected interface is expecting a single touch / user. In this situation it may be necessary to restrict touches to a single device at any given time.
To cater for this requirement you can define a touch priority for each device via the device setting interlock:
| Priority setting | Meaning |
| none | All touches are delivered to the operating system. This is the default setting. |
| interlock | Whilst a touch is active on the device to which this setting relates, touches on other devices are ignored, except for admin devices. |
| admin | Whilst a touch is active on the device to which this setting relates, touches on other devices are ignored. A touch on another non-admin device will be cancelled (forced pen up) if this device is touched. |
The interlock settings can be set in the UPDD Console, Touch tab, or via the command line interface, upddutils.
The device setting interlock_release_time specifies a time period in milliseconds during which a device retains interlock control after a touch ends, and is used if set greater than 0.
When two devices have admin set, the one in control keeps control, i.e. an admin device cannot be interrupted even by another admin device.
Interlock example
Use the UPDD command line interface (see the upddutils command line reference) to set one device to admin and one to interlock:
upddutils device 1 set interlock interlock upddutils device 2 set interlock admin
A touch on the 'admin' device will be actioned immediately. A touch on the 'interlock' device will only work if the admin device is not being touched, or once the interlock_release_time has passed.
Notes
The interlock function is applied prior to dispatching touch data on the driver's API, so any UPDD client application will be affected by this setting.
- This setting applies to the driver's Windows mouse / virtual HID, Linux X / uinput and macOS simpletouch interfaces.
In Windows, if the UPDD interlock feature is disabled when using the UPDD virtual HID interface, the touches will be subject to any interlock processing implemented by Windows. - UPDD Commander has its own interlock processing.
- If TUIO is in use and the interlock feature is enabled, this will prevent multi-monitor support with TUIO client applications.
Touch on the login screen
The two most common queries regarding touch on the login screen are: will it work, and can I use an on-screen keyboard? For the three main desktop OS the answer is as follows:
| OS | Description | |
| Touch | ||
| Windows | Yes | Both the UPDD mouse and HID touch interfaces work. With the mouse interface touch the login screen to show the password field. With the HID interface swipe up the screen to show the password field. |
| macOS | Yes | Yes, but with macOS 10.14 and above UPDD must first be given Accessibility permission (named 'Device Control and Data Access' on macOS 27), as described in macOS: Accessibility, Input Monitoring and background items. Note: touch does not work on the special pre-boot screen shown if you have FileVault enabled. |
| Linux | Yes | Yes, when using the UPDD uinput interface. |
| Keyboard | ||
| Windows | Yes | Yes, if configured in Windows to do so. |
| macOS | From 10.15 | Prior to macOS 10.15 it was not possible. From 10.15 an on-screen keyboard can be configured: see On-screen keyboard. |
| Linux | Possibly | A number of articles on the web show how this can be achieved for various distributions. |