TouchEvent

struct

Namespace: Vuplex.WebView

A touch event that can be dispatched with IWithTouch.SendTouchEvent().

Summary

Public properties

Point

Vector2 Point

The normalized point of the touch event.

RadiusX

float RadiusX

(optional) The X radius of the touch in pixels. If not set, the default value of 25px will be used.

RadiusY

float RadiusY

(optional) The Y radius of the touch in pixels. If not set, the default value of 25px will be used.

RotationAngle

float RotationAngle

(optional) The rotation angle in radians.

RotationAngle

float RotationAngle

(optional) The normalized pressure of the touch in the range of [0, 1].

TouchID

int TouchID

ID of the touch. This value must be unique per touch but is shared by all events for the same touch (i.e. the Start, Move, and End events for a single touch share the same TouchID). This can be any number except -1, and a maximum of 16 concurrent touches are tracked.

Type

TouchEventType Type

The touch event type. Touches begin with one TouchEventType.Start event, followed by zero or more TouchEventType.Move events, and finally one TouchEventType.End or TouchEventType.Cancel event.