Class TouchControl
A control representing a touch contact.
Inherited Members
Namespace: UnityEngine.InputSystem.Controls
Syntax
public class TouchControl : InputControl<TouchState>
Constructors
TouchControl()
Declaration
public TouchControl()
Properties
delta
Declaration
public Vector2Control delta { get; }
Property Value
Type | Description |
---|---|
Vector2Control |
indirectTouch
Declaration
public ButtonControl indirectTouch { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
isInProgress
Declaration
public bool isInProgress { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
phase
Declaration
public TouchPhaseControl phase { get; }
Property Value
Type | Description |
---|---|
TouchPhaseControl |
position
Absolute position on the touch surface.
Declaration
public Vector2Control position { get; }
Property Value
Type | Description |
---|---|
Vector2Control |
press
Declaration
public TouchPressControl press { get; }
Property Value
Type | Description |
---|---|
TouchPressControl |
pressure
Declaration
public AxisControl pressure { get; }
Property Value
Type | Description |
---|---|
AxisControl |
radius
Declaration
public Vector2Control radius { get; }
Property Value
Type | Description |
---|---|
Vector2Control |
startPosition
Declaration
public Vector2Control startPosition { get; }
Property Value
Type | Description |
---|---|
Vector2Control |
startTime
Declaration
public DoubleControl startTime { get; }
Property Value
Type | Description |
---|---|
DoubleControl |
tap
Declaration
public ButtonControl tap { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
tapCount
Declaration
public IntegerControl tapCount { get; }
Property Value
Type | Description |
---|---|
IntegerControl |
touchId
The ID of the touch contact as reported by the underlying system.
Declaration
public IntegerControl touchId { get; }
Property Value
Type | Description |
---|---|
IntegerControl |
Methods
FinishSetup()
Declaration
protected override void FinishSetup()
Overrides
ReadUnprocessedValueFromState(Void*)
Declaration
public override TouchState ReadUnprocessedValueFromState(void *statePtr)
Parameters
Type | Name | Description |
---|---|---|
System.Void* | statePtr |
Returns
Type | Description |
---|---|
TouchState |
Overrides
WriteValueIntoState(TouchState, Void*)
Declaration
public override void WriteValueIntoState(TouchState value, void *statePtr)
Parameters
Type | Name | Description |
---|---|---|
TouchState | value | |
System.Void* | statePtr |