Class: GamepadAxis1dBinding
Defined in: input/gamepad/bindings/gamepad-axis1d-binding.ts:24
Gamepad axis-1d input binding, driven by either an analog stick or a pair of buttons.
Implements
Constructors
Constructor
new GamepadAxis1dBinding(
action,source):GamepadAxis1dBinding
Defined in: input/gamepad/bindings/gamepad-axis1d-binding.ts:36
Constructs a new GamepadAxis1dBinding.
Parameters
action
The action associated with this binding.
source
Either an axisIndex for an analog stick, or a positiveButtonIndex/negativeButtonIndex pair for digital buttons.
Returns
GamepadAxis1dBinding
Properties
action
readonlyaction:Axis1dAction
Defined in: input/gamepad/bindings/gamepad-axis1d-binding.ts:26
The action associated with this binding.
Implementation of
displayText
readonlydisplayText:string
Defined in: input/gamepad/bindings/gamepad-axis1d-binding.ts:28
A human-readable description of this binding.
Implementation of
source
readonlysource:GamepadAxis1dBindingArgs
Defined in: input/gamepad/bindings/gamepad-axis1d-binding.ts:30
The gamepad axis or buttons this binding reads its value from.