A floating-point axis control.
Inheritance
System.Object
AxisControl
public class AxisControl : InputControl<float>
Constructors
Declaration
Fields
Declaration
public AxisControl.Clamp clamp
Field Value
Declaration
public float clampConstant
Field Value
Type |
Description |
System.Single |
|
Declaration
Field Value
Type |
Description |
System.Single |
|
Declaration
Field Value
Type |
Description |
System.Single |
|
Declaration
Field Value
Type |
Description |
System.Boolean |
|
Declaration
Field Value
Type |
Description |
System.Boolean |
|
Declaration
public float normalizeMax
Field Value
Type |
Description |
System.Single |
|
Declaration
public float normalizeMin
Field Value
Type |
Description |
System.Single |
|
Declaration
public float normalizeZero
Field Value
Type |
Description |
System.Single |
|
Declaration
Field Value
Type |
Description |
System.Boolean |
|
Declaration
Field Value
Type |
Description |
System.Single |
|
Methods
Declaration
public override bool CompareValue(void *firstStatePtr, void *secondStatePtr)
Parameters
Type |
Name |
Description |
System.Void* |
firstStatePtr |
|
System.Void* |
secondStatePtr |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
UnityEngine.InputSystem.InputControl<System.Single>.CompareValue(System.Void*, System.Void*)
Declaration
public override float EvaluateMagnitude(void *statePtr)
Parameters
Type |
Name |
Description |
System.Void* |
statePtr |
|
Returns
Type |
Description |
System.Single |
|
Overrides
Declaration
protected float Preprocess(float value)
Parameters
Type |
Name |
Description |
System.Single |
value |
|
Returns
Type |
Description |
System.Single |
|
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*)
Declaration
public override void WriteValueIntoState(float value, void *statePtr)
Parameters
Type |
Name |
Description |
System.Single |
value |
|
System.Void* |
statePtr |
|
Overrides
UnityEngine.InputSystem.InputControl<System.Single>.WriteValueIntoState(System.Single, System.Void*)
Extension Methods