Struct TrackPadTouch
A touch event received from a magic trackpad.
Inherited Members
Namespace: Unity.AppUI.Core
Assembly: Unity.AppUI.dll
Syntax
public struct TrackPadTouchRemarks
Theses Touch events can be received from a magic trackpad on macOS.
Constructors
TrackPadTouch(int, Vector2, int, Vector2, float, TouchPhase)
Constructor.
Declaration
public TrackPadTouch(int fingerId, Vector2 position, int tapCount, Vector2 deltaPos, float deltaTime, TouchPhase phase)Parameters
| Type | Name | Description | 
|---|---|---|
| int | fingerId | The unique identifier of the touch. | 
| Vector2 | position | The position of the touch in normalized coordinates. | 
| int | tapCount | The number of taps. This is always 1 for a trackpad. | 
| Vector2 | deltaPos | The delta position of the touch since the last frame. | 
| float | deltaTime | The delta time since the last frame. | 
| TouchPhase | phase | The phase of the touch. | 
Properties
deltaPos
The delta position of the touch since the last frame.
Declaration
public readonly Vector2 deltaPos { get; }Property Value
| Type | Description | 
|---|---|
| Vector2 | 
deltaTime
The delta time since the last frame.
Declaration
public readonly float deltaTime { get; }Property Value
| Type | Description | 
|---|---|
| float | 
fingerId
The unique identifier of the touch.
Declaration
public readonly int fingerId { get; }Property Value
| Type | Description | 
|---|---|
| int | 
phase
The phase of the touch.
Declaration
public readonly TouchPhase phase { get; }Property Value
| Type | Description | 
|---|---|
| TouchPhase | 
position
The position of the touch in normalized coordinates.
Declaration
public readonly Vector2 position { get; }Property Value
| Type | Description | 
|---|---|
| Vector2 | 
tapCount
The number of taps. This is always 1 for a trackpad.
Declaration
public readonly int tapCount { get; }Property Value
| Type | Description | 
|---|---|
| int |