Class TouchPressControl
A button that reads its pressed state from phase.
Inherited Members
Namespace: UnityEngine.InputSystem.Controls
Syntax
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
WriteValueIntoState(Single, Void*)
Declaration
public override void WriteValueIntoState(float value, void *statePtr)
Parameters
Type | Name | Description |
---|---|---|
Single | value | |
Void* | statePtr |