Skip to main content

Class: KeyboardAxis1dBinding

Defined in: input/keyboard/bindings/keyboard-axis1d-binding.ts:14

Keyboard axis-1d input binding.

Implements​

Constructors​

Constructor​

new KeyboardAxis1dBinding(action, positiveKeyCode, negativeKeyCode): KeyboardAxis1dBinding

Defined in: input/keyboard/bindings/keyboard-axis1d-binding.ts:31

Constructs a new KeyboardAxis1dBinding.

Parameters​

action​

Axis1dAction

The action associated with this binding.

positiveKeyCode​

KeyCode

The key code for the positive direction.

negativeKeyCode​

KeyCode

The key code for the negative direction.

Returns​

KeyboardAxis1dBinding

Properties​

action​

readonly action: Axis1dAction

Defined in: input/keyboard/bindings/keyboard-axis1d-binding.ts:18

The action associated with this binding.

Implementation of​

InputBinding.action


displayText​

readonly displayText: string

Defined in: input/keyboard/bindings/keyboard-axis1d-binding.ts:24

A human-readable description of this binding.

Implementation of​

InputBinding.displayText


negativeKeyCode​

readonly negativeKeyCode: KeyCode

Defined in: input/keyboard/bindings/keyboard-axis1d-binding.ts:22

The key code associated with the negative direction.

Implementation of​

KeyboardAxis1dBindingArgs.negativeKeyCode


positiveKeyCode​

readonly positiveKeyCode: KeyCode

Defined in: input/keyboard/bindings/keyboard-axis1d-binding.ts:20

The key code associated with the positive direction.

Implementation of​

KeyboardAxis1dBindingArgs.positiveKeyCode