A control that simply checks the entire state it's been assigned
for whether there's any non-zero bytes. If there are, the control
returns 1.0; otherwise it returns 0.0.
Inheritance
System.Object
AnyKeyControl
public class AnyKeyControl : InputControl<float>
Constructors
Declaration
Properties
Declaration
public bool isPressed { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
Declaration
public override float ReadUnprocessedValueFromState(void *statePtr)
Parameters
Type |
Name |
Description |
System.Void* |
statePtr |
|
Returns
Type |
Description |
System.Single |
|
Overrides
UnityEngine.InputSystem.InputControl<System.Single>.ReadUnprocessedValueFromState(System.Void*)
Extension Methods