Class TouchPhaseControl
A control reading a TouchPhase value.
Inherited Members
Namespace: UnityEngine.InputSystem.Controls
Assembly: Unity.InputSystem.dll
Syntax
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.
See Also
Methods
ReadUnprocessedValueFromState(void*)
Declaration
public override TouchPhase ReadUnprocessedValueFromState(void* statePtr)
Parameters
Type | Name | Description |
---|---|---|
void* | statePtr |
Returns
Type | Description |
---|---|
TouchPhase |
Overrides
See Also
WriteValueIntoState(TouchPhase, void*)
Declaration
public override void WriteValueIntoState(TouchPhase value, void* statePtr)
Parameters
Type | Name | Description |
---|---|---|
TouchPhase | value | |
void* | statePtr |
Overrides
See Also
Extension Methods
InputControlExtensions.WriteValueIntoState<TValue, TState>(InputControl<TValue>, TValue, ref TState)