GetInputAxisValue
From Onset Developer Wiki
Description
Gets the value of input axis keys.
Axis Mappings | |||||
---|---|---|---|---|---|
AxisName | Keys | ||||
MoveForward | W, S, Up, Down, Gamepad Left Thumbstick Y-Axis | ||||
MoveRight | A, D, Gamepad Left Thumbstick X-Axis | ||||
Turn | Mouse X | ||||
LookUpRate | Gamepad Right Thumbstick Y-Axis | ||||
LookUp | Mouse Y | ||||
Throttle | W, Gamepad Right Trigger | ||||
Brake | S, Gamepad Left Rigger | ||||
MoveVertical | Left Shift, Left Ctrl | ||||
MoveTurn | E, Q | ||||
Handbrake | Space Bar |
Syntax
GetInputAxisValue(AxisName)
Parameters
- AxisName
Name of the input axis key.
Return Value
- Returns the value of the input axis key between -1.0 and 1.0.
Example
__EDIT_ME__
See also
__EDIT_ME__