← Back to carmenta.com
Carmenta Engine SDK Documentation
×
Reference Manual

StandardTouchTool3D.TouchRadius Property

Gets or sets an explicit touch radius that will be used by the StandardTouchTool3D.

Thread safety: This property is not thread-safe.

Syntax

C#
public System.Int32 TouchRadius { get; set; }

Property Value

Type: System.Int32
Default: 0
A value greater than zero will override the touch radius reported by the hardware.

Remarks

The default behavior of the StandardTouchTool3D is to use the touch point radius as reported by the hardware in each touch event and in most cases this works well. However, some hardware can be too sensitive or inaccurate and some hardware does not report touch point sizes at all, typically hardware that use a stylus for touch input, when this is the case you can use this property to set an explicit and fixed touch radius.

Note

In cases where the hardware consistently reports touch points that are too small or too large it is usually much better to modify the TouchRadiusScaleFactor instead of setting an explicit touch radius.

Platforms

Windows, Linux, Android

By accessing the information on this site you accept our terms and conditions and privacy policy.
This site uses cookies to enhance your experience and provide additional functionality.

Accept