A control representing a touch contact.
Inheritance
System.Object
TouchControl
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
public class TouchControl : InputControl<TouchState>
Constructors
Declaration
Properties
Declaration
public Vector2Control delta { get; }
Property Value
Declaration
public IntegerControl displayIndex { get; }
Property Value
Declaration
public ButtonControl indirectTouch { get; }
Property Value
Declaration
public PointerPhaseControl phase { get; }
Property Value
Absolute position on the touch surface.
Declaration
public Vector2Control position { get; }
Property Value
Declaration
public AxisControl pressure { get; }
Property Value
Declaration
public Vector2Control radius { 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(InputDeviceBuilder builder)
Parameters
Type |
Name |
Description |
InputDeviceBuilder |
builder |
|
Overrides
Declaration
public override TouchState ReadUnprocessedValueFromState(void *statePtr)
Parameters
Type |
Name |
Description |
System.Void* |
statePtr |
|
Returns
Type |
Description |
TouchState |
|
Overrides
UnityEngine.Experimental.Input.InputControl<TouchState>.ReadUnprocessedValueFromState(System.Void*)
Declaration
public override void WriteValueIntoState(TouchState value, void *statePtr)
Parameters
Type |
Name |
Description |
TouchState |
value |
|
System.Void* |
statePtr |
|
Overrides
UnityEngine.Experimental.Input.InputControl<TouchState>.WriteValueIntoState(TouchState, System.Void*)