Class IntegerControl
A generic input control reading integer values.
Inherited Members
Namespace: UnityEngine .InputSystem .Controls
Assembly: Unity.InputSystem.dll
Syntax
public class IntegerControl : InputControl<int>
Constructors
IntegerControl()
Default-initialize an integer control.
Declaration
public IntegerControl()
Methods
CalculateOptimizedControlDataType()
Calculates and returns a optimized data type that can represent a control's value in memory directly.
The value then is cached in optimized
Declaration
protected override FourCC CalculateOptimizedControlDataType()
Returns
Type | Description |
---|---|
Four |
Overrides
ReadUnprocessedValueFromState(void*)
Declaration
public override int ReadUnprocessedValueFromState(void* statePtr)
Parameters
Type | Name | Description |
---|---|---|
void* | statePtr |
Returns
Type | Description |
---|---|
int |
Overrides
WriteValueIntoState(int, void*)
Declaration
public override void WriteValueIntoState(int value, void* statePtr)