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