Struct InputInteractionContext
Syntax
public struct InputInteractionContext
Properties
action
The action associated with the binding.
Declaration
public InputAction action { get; }
Property Value
control
The bound control that changed its state to trigger the binding associated
with the interaction.
Declaration
public InputControl control { get; }
Property Value
isStarted
True if the interaction has been started.
Declaration
public bool isStarted { get; }
Property Value
Type |
Description |
System.Boolean |
|
See Also
isWaiting
True if the interaction is waiting for input
Declaration
public bool isWaiting { get; }
Property Value
Type |
Description |
System.Boolean |
|
See Also
phase
Declaration
public InputActionPhase phase { get; }
Property Value
startTime
Declaration
public double startTime { get; }
Property Value
Type |
Description |
System.Double |
|
time
Time stamp of the input event that caused control to trigger a change in the
state of action.
Declaration
public double time { get; }
Property Value
Type |
Description |
System.Double |
|
See Also
timerHasExpired
Declaration
public bool timerHasExpired { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
Canceled()
Declaration
ControlIsActuated(Single)
Return true if the control that triggered the interaction has been actuated beyond the given threshold.
Declaration
public bool ControlIsActuated(float threshold = 0F)
Parameters
Type |
Name |
Description |
System.Single |
threshold |
Threshold that must be reached for the control to be considered actuated. If this is zero,
the threshold must be exceeded. If it is any positive value, the value must be at least matched.
|
Returns
Type |
Description |
System.Boolean |
True if the trigger control is actuated.
|
See Also
Performed()
Declaration
PerformedAndStayPerformed()
Declaration
public void PerformedAndStayPerformed()
PerformedAndStayStarted()
Declaration
public void PerformedAndStayStarted()
ReadValue<TValue>()
Declaration
public TValue ReadValue<TValue>()
where TValue : struct
Returns
Type Parameters
SetTimeout(Single)
Declaration
public void SetTimeout(float seconds)
Parameters
Type |
Name |
Description |
System.Single |
seconds |
|
Started()
Declaration
Waiting()
Declaration
See Also