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
| Параметр | Описание |
|---|---|
x | X coordinate relative to the left side of the view. |
y | Y coordinate relative to the top side of the view. |
id | Id 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. |
radiusX | X radius in pixels. Set to 0 if not applicable. |
radiusY | Y radius in pixels. Set to 0 if not applicable. |
rotationAngle | Rotation angle in radians. Set to 0 if not applicable. |
force | The normalized pressure of the pointer input in the range of [0,1]. Set to 0 if not applicable. |
modifiers | Bit flags describing any pressed modifier keys. Use “bitwise or” operator when more than one modifier is pressed. |
pointerType | The device type that caused the event. |
TouchData()
Method
TouchData constructor
Parameters
| Параметр | Описание |
|---|---|
x | X coordinate relative to the left side of the view. |
y | Y 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.