resamplingEnabled property

bool resamplingEnabled
getter/setter pair

Enable pointer event resampling for touch devices by setting this to true.

Resampling results in smoother touch event processing at the cost of some added latency. Devices with low frequency sensors or when the frequency is not a multiple of the display frequency (e.g., 120Hz input and 90Hz display) benefit from this.

This is typically set during application initialization but can be adjusted dynamically in case the application only wants resampling for some period of time.

Implementation

bool resamplingEnabled = false;