Skip to main content

Class: KeyboardHoldBinding

Defined in: input/keyboard/bindings/keyboard-hold-binding.ts:12

Keyboard hold input binding.

Implements

Constructors

Constructor

new KeyboardHoldBinding(action, keyCode): KeyboardHoldBinding

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

Constructs a new KeyboardHoldBinding.

Parameters

action

HoldAction

The action associated with this binding.

keyCode

KeyCode

The key code associated with this binding.

Returns

KeyboardHoldBinding

Properties

action

readonly action: HoldAction

Defined in: input/keyboard/bindings/keyboard-hold-binding.ts:16

The action associated with this binding.

Implementation of

InputBinding.action


displayText

readonly displayText: string

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

A human-readable description of this binding.

Implementation of

InputBinding.displayText


keyCode

readonly keyCode: KeyCode

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

The key code associated with this binding.

Implementation of

KeyboardHoldBindingArgs.keyCode