Skip to main content

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

Axis1dAction

The action associated with this binding.

source

GamepadAxis1dBindingArgs

Either an axisIndex for an analog stick, or a positiveButtonIndex/negativeButtonIndex pair for digital buttons.

Returns

GamepadAxis1dBinding

Properties

action

readonly action: Axis1dAction

Defined in: input/gamepad/bindings/gamepad-axis1d-binding.ts:26

The action associated with this binding.

Implementation of

InputBinding.action


displayText

readonly displayText: string

Defined in: input/gamepad/bindings/gamepad-axis1d-binding.ts:28

A human-readable description of this binding.

Implementation of

InputBinding.displayText


source

readonly source: GamepadAxis1dBindingArgs

Defined in: input/gamepad/bindings/gamepad-axis1d-binding.ts:30

The gamepad axis or buttons this binding reads its value from.