Class TouchPhaseControl
A control reading a TouchPhase value.
Inherited Members
Namespace: UnityEngine.InputSystem.Controls
Syntax
[Preserve]
public class TouchPhaseControl : InputControl<TouchPhase>
Remarks
This is used mainly by Touchscreen to read phase.
Constructors
TouchPhaseControl()
Default-initialize the control.
Declaration
public TouchPhaseControl()
Remarks
Format of the control is FormatInt by default.
Methods
ReadUnprocessedValueFromState(Void*)
Declaration
public override TouchPhase ReadUnprocessedValueFromState(void *statePtr)
Parameters
Type | Name | Description |
---|---|---|
Void* | statePtr |
Returns
Type | Description |
---|---|
TouchPhase |
Overrides
UnityEngine.InputSystem.InputControl<UnityEngine.InputSystem.TouchPhase>.ReadUnprocessedValueFromState(System.Void*)
WriteValueIntoState(TouchPhase, Void*)
Declaration
public override void WriteValueIntoState(TouchPhase value, void *statePtr)
Parameters
Type | Name | Description |
---|---|---|
TouchPhase | value | |
Void* | statePtr |
Overrides
UnityEngine.InputSystem.InputControl<UnityEngine.InputSystem.TouchPhase>.WriteValueIntoState(UnityEngine.InputSystem.TouchPhase, System.Void*)
Extension Methods
InputControlExtensions.WriteValueIntoState<TValue, TState>(InputControl<TValue>, TValue, ref TState)