Skip to main content

Class: GamepadsRegistry

Defined in: livelink.clients/livelink.js/sources/inputs/GamepadsRegistry.ts:14

Registry for managing gamepads in the Livelink instance.

It handles the connection and disconnection of physical gamepads, and provides a safe way to create virtual gamepads that don't conflict with physical gamepads.

Extends

  • InputDevice

Methods

createVirtualGamepad()

createVirtualGamepad(): GamepadInputRelay;

Defined in: livelink.clients/livelink.js/sources/inputs/GamepadsRegistry.ts:47

Experimental

Returns

GamepadInputRelay


_onEnable()

protected _onEnable(): boolean;

Defined in: livelink.clients/livelink.js/sources/inputs/GamepadsRegistry.ts:60

Returns

boolean

Overrides

InputDevice._onEnable;

_onDisable()

protected _onDisable(): void;

Defined in: livelink.clients/livelink.js/sources/inputs/GamepadsRegistry.ts:85

Returns

void

Overrides

InputDevice._onDisable;

enable()

enable(): void;

Defined in: livelink.clients/livelink.js/sources/inputs/InputDevice.ts:10

Enable the input device. If the device is already enabled, this method does nothing.

Returns

void

Inherited from

InputDevice.enable;

disable()

disable(): void;

Defined in: livelink.clients/livelink.js/sources/inputs/InputDevice.ts:22

Disable the input device. If the device is already disabled, this method does nothing.

Returns

void

Inherited from

InputDevice.disable;