Skip to main content

Class: KeyboardAxis2dBinding

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

Keyboard axis-2d input binding.

Implements

Constructors

Constructor

new KeyboardAxis2dBinding(action, northKeyCode, southKeyCode, eastKeyCode, westKeyCode): KeyboardAxis2dBinding

Defined in: input/keyboard/bindings/keyboard-axis2d-binding.ts:41

Constructs a new KeyboardAxis2dBinding.

Parameters

action

Axis2dAction

The action associated with this binding.

northKeyCode

KeyCode

The key code associated with the north direction.

southKeyCode

KeyCode

The key code associated with the south direction.

eastKeyCode

KeyCode

The key code associated with the east direction.

westKeyCode

KeyCode

The key code associated with the west direction.

Returns

KeyboardAxis2dBinding

Properties

action

readonly action: Axis2dAction

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

The action associated with this binding.

Implementation of

InputBinding.action


displayText

readonly displayText: string

Defined in: input/keyboard/bindings/keyboard-axis2d-binding.ts:32

A human-readable description of this binding.

Implementation of

InputBinding.displayText


eastKeyCode

readonly eastKeyCode: KeyCode

Defined in: input/keyboard/bindings/keyboard-axis2d-binding.ts:28

The key code associated with the east direction.

Implementation of

KeyboardAxis2dBindingArgs.eastKeyCode


northKeyCode

readonly northKeyCode: KeyCode

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

The key code associated with the north direction.

Implementation of

KeyboardAxis2dBindingArgs.northKeyCode


southKeyCode

readonly southKeyCode: KeyCode

Defined in: input/keyboard/bindings/keyboard-axis2d-binding.ts:26

The key code associated with the south direction.

Implementation of

KeyboardAxis2dBindingArgs.southKeyCode


westKeyCode

readonly westKeyCode: KeyCode

Defined in: input/keyboard/bindings/keyboard-axis2d-binding.ts:30

The key code associated with the west direction.

Implementation of

KeyboardAxis2dBindingArgs.westKeyCode