new AxInputControls()
Creates an object instance of AxInputControls
AxInputControls is used for input operations to hold the input properties of multiple controls, which correspond to a single action
The input properties held by AxInputControls can be considered alternatives for the same control
- Source:
Methods
GetValue(deltaTime) → {Number}
Gets a value for the controls
The value for boolean properties like buttons controls is 0.0 or 1.0
The value for float properties of analog controls is usually between -1.0 and 1.0 or between 0.0 and 1.0, depending on the control. There might be exceptions
The value for float properties of other controls
Generally, a typical approach would be to consider the value of 1.0 as an "active" state and the value of 0.0 as inactive
Parameters:
Name | Type | Description |
---|---|---|
deltaTime |
Number | The time in seconds, passed since the last processing |
- Source:
Returns:
The value for the controls
- Type
- Number