Class AnyKeyControl
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.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: UnityEngine.Experimental.Input.Controls
Syntax
public class AnyKeyControl : InputControl<float>
Constructors
AnyKeyControl()
Declaration
public AnyKeyControl()
Properties
isPressed
Declaration
public bool isPressed { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
ReadUnprocessedValueFromState(Void*)
Declaration
public override float ReadUnprocessedValueFromState(void *statePtr)
Parameters
Type | Name | Description |
---|---|---|
System.Void* | statePtr |
Returns
Type | Description |
---|---|
System.Single |
Overrides
UnityEngine.Experimental.Input.InputControl<System.Single>.ReadUnprocessedValueFromState(System.Void*)