Skip to main content

Class: KeyboardInputSource

Defined in: input/keyboard/input-sources/keyboard-input-source.ts:18

Represents a keyboard input source with associated bindings.

Implements​

Constructors​

Constructor​

new KeyboardInputSource(inputManager): KeyboardInputSource

Defined in: input/keyboard/input-sources/keyboard-input-source.ts:46

Constructs a new KeyboardInputSource.

Parameters​

inputManager​

InputManager

The input manager to associate with this input source.

Returns​

KeyboardInputSource

Properties​

axis1dBindings​

readonly axis1dBindings: Set<KeyboardAxis1dBinding>

Defined in: input/keyboard/input-sources/keyboard-input-source.ts:34

The set of axis-1d bindings associated with this input source.

Implementation of​

Axis1dInputSource.axis1dBindings


axis2dBindings​

readonly axis2dBindings: Set<KeyboardAxis2dBinding>

Defined in: input/keyboard/input-sources/keyboard-input-source.ts:32

The set of axis-2d bindings associated with this input source.

Implementation of​

Axis2dInputSource.axis2dBindings


holdBindings​

readonly holdBindings: Set<KeyboardHoldBinding>

Defined in: input/keyboard/input-sources/keyboard-input-source.ts:30

The set of hold bindings associated with this input source.

Implementation of​

HoldInputSource.holdBindings


name​

readonly name: "Keyboard" = 'Keyboard'

Defined in: input/keyboard/input-sources/keyboard-input-source.ts:35

The name of this input source.

Implementation of​

Axis1dInputSource.name


triggerBindings​

readonly triggerBindings: Set<KeyboardTriggerBinding>

Defined in: input/keyboard/input-sources/keyboard-input-source.ts:28

The set of trigger bindings associated with this input source.

Implementation of​

TriggerInputSource.triggerBindings

Methods​

reset()​

reset(): void

Defined in: input/keyboard/input-sources/keyboard-input-source.ts:55

Resets the object to its initial state.

Returns​

void

Implementation of​

Resettable.reset


stop()​

stop(): void

Defined in: input/keyboard/input-sources/keyboard-input-source.ts:60

Returns​

void

Implementation of​

Stoppable.stop