Class TouchPressControl
A button that reads its pressed state from phase.
Inherited Members
Namespace: UnityEngine.InputSystem.Controls
Syntax
[Preserve]
public class TouchPressControl : ButtonControl
Remarks
This control is used by TouchControl to link press to phase. It will return 1 as long as the value of phase is Began, Stationary, or Moved, i.e. as long as the touch is in progress. For all other phases, it will return 0.
Methods
FinishSetup()
Declaration
protected override void FinishSetup()
Overrides
ReadUnprocessedValueFromState(Void*)
Declaration
public override float ReadUnprocessedValueFromState(void *statePtr)
Parameters
Type | Name | Description |
---|---|---|
Void* | statePtr |
Returns
Type | Description |
---|---|
Single |
Overrides
Extension Methods
InputControlExtensions.WriteValueIntoState<TValue, TState>(InputControl<TValue>, TValue, ref TState)