TouchData

Assembly: ZennoLab.CommandCenter
Full name: ZennoLab.CommandCenter.TouchEvents.TouchData


Representation of a single touch event. Touches begin with one TouchStart action followed by zero or more TouchMoved actions and finally one TouchEnded or TouchCancelled action. Events not respecting this order will be ignored.

Constructor

TouchData()

Method

Default constructor for NewtonsoftJson. DO NOT DELETE

TouchData()

Method

TouchData constructor

Parameters

ПараметрОписание
xX coordinate relative to the left side of the view.
yY coordinate relative to the top side of the view.
idId of a touch point. Must be unique per touch, can be any number except -1. Note that a maximum of 16 concurrent touches will be tracked; touches beyond that will be ignored.
radiusXX radius in pixels. Set to 0 if not applicable.
radiusYY radius in pixels. Set to 0 if not applicable.
rotationAngleRotation angle in radians. Set to 0 if not applicable.
forceThe normalized pressure of the pointer input in the range of [0,1]. Set to 0 if not applicable.
modifiersBit flags describing any pressed modifier keys. Use “bitwise or” operator when more than one modifier is pressed.
pointerTypeThe device type that caused the event.

TouchData()

Method

TouchData constructor

Parameters

ПараметрОписание
xX coordinate relative to the left side of the view.
yY coordinate relative to the left side of the view.

Properties

X

Property

X coordinate

Y

Property

Y coordinate

RadiusX

Property

Radius of touch by X axis

RadiusY

Property

Radius of touch by Y axis

RotationAngle

Property

Rotation angle of touch

Force

Property

Force of touch

Id

Property

Id of touch

Modifiers

Property

Bit flags describing any pressed modifier keys. Use “bitwise or” operator when more than one modifier is pressed.

PointerType

Property

The device type that caused the event.