Limit the Number of Touches

Limit the Number of Touches

Overview

DISPLAX Service allows you to limit the maximum number of simultaneous touches reported by a touch controller. This is useful for performance optimization, application compatibility, and filtering out unintended or excessive touch input.

By defining a maximum touch count, the system will ignore any additional touches beyond the configured limit.


When to Limit the Number of Touches

You may want to set a touch limit when:

  • Running applications that support only a fixed number of touches

  • Optimizing performance on low-resource systems

  • Reducing unintended multi-touch input

  • Using touch sensors in public or high-traffic environments

  • Testing or debugging touch behavior


Check the Current Touch Limit

To see the current maximum number of touches reported by the device, run:

displaxservice -a 127.0.0.1 --tmax

This command returns the current touch limit configured for the connected device.


Set the Maximum Number of Touches

To limit the number of reported touches to 10, run:

displaxservice -a 127.0.0.1 --tmax 10

The device will now report a maximum of 10 simultaneous touches.


Important Notes

  • Touches beyond the defined limit are ignored, not queued.

  • The optimal value depends on both the hardware capabilities and the target application.

  • Some operating systems or applications may impose their own touch limits.

  • Changes take effect immediately unless otherwise specified by the device firmware.


Best Practices

  • Match the touch limit to the maximum supported by your application, otherwise leave it at the maximum (factory default).

  • Reboot or reinitialize the touch controller if behavior appears inconsistent after changes.