Skip to content

InputPlugin

Defined in: plugins/input/InputPlugin.ts:38

Extends

Implements

Constructors

new InputPlugin()

new InputPlugin(id): InputPlugin

Defined in: plugins/Plugin.ts:40

Parameters

id

string = 'Plugin'

Returns

InputPlugin

Inherited from

Plugin.constructor

Properties

__dill_pixel_method_binding_root

__dill_pixel_method_binding_root: boolean

Defined in: plugins/Plugin.ts:37

Inherited from

Plugin.__dill_pixel_method_binding_root


activeControllers

activeControllers: Set<string>

Defined in: plugins/input/InputPlugin.ts:46

Implementation of

IInputPlugin.activeControllers


activeGamepads

activeGamepads: Map<string, Gamepad>

Defined in: plugins/input/InputPlugin.ts:45

Implementation of

IInputPlugin.activeGamepads


controls

readonly controls: Controls

Defined in: plugins/input/InputPlugin.ts:42

Implementation of

IInputPlugin.controls


id

readonly id: "input" = 'input'

Defined in: plugins/input/InputPlugin.ts:39

Implementation of

IInputPlugin.id

Overrides

Plugin.id


onControllerActivated

onControllerActivated: Signal<(controller) => void>

Defined in: plugins/input/InputPlugin.ts:51

Implementation of

IInputPlugin.onControllerActivated


onControllerDeactivated

onControllerDeactivated: Signal<(controller) => void>

Defined in: plugins/input/InputPlugin.ts:52

Implementation of

IInputPlugin.onControllerDeactivated


onGamepadConnected

onGamepadConnected: Signal<(gamepad) => void>

Defined in: plugins/input/InputPlugin.ts:49

Implementation of

IInputPlugin.onGamepadConnected


onGamepadDisconnected

onGamepadDisconnected: Signal<(gamepad) => void>

Defined in: plugins/input/InputPlugin.ts:50

Implementation of

IInputPlugin.onGamepadDisconnected


options

options: InputManagerOptions

Defined in: plugins/input/InputPlugin.ts:47

Implementation of

IInputPlugin.options

Accessors

actionsPlugin

Get Signature

get actionsPlugin(): IActionsPlugin

Defined in: plugins/input/InputPlugin.ts:166

Returns

IActionsPlugin


app

Get Signature

get app(): T

Defined in: plugins/Plugin.ts:45

Returns

T

Implementation of

IInputPlugin.app

Inherited from

Plugin.app

Methods

addSignalConnection()

addSignalConnection(…args): void

Defined in: plugins/Plugin.ts:71

Add signal connections to the container.

Parameters

args

SignalConnection[]

The signal connections to add.

Returns

void

Implementation of

IInputPlugin.addSignalConnection

Inherited from

Plugin.addSignalConnection


clearSignalConnections()

clearSignalConnections(): void

Defined in: plugins/Plugin.ts:77

Returns

void

Implementation of

IInputPlugin.clearSignalConnections

Inherited from

Plugin.clearSignalConnections


destroy()

destroy(): void

Defined in: plugins/input/InputPlugin.ts:79

Returns

void

Implementation of

IInputPlugin.destroy

Overrides

Plugin.destroy


initialize()

initialize(app, options): Promise<void>

Defined in: plugins/input/InputPlugin.ts:58

Parameters

app

IApplication

options

InputManagerOptions = defaultOptions

Returns

Promise<void>

Implementation of

IInputPlugin.initialize

Overrides

Plugin.initialize


isActionActive()

isActionActive(action): boolean

Defined in: plugins/input/InputPlugin.ts:54

Parameters

action

Action

Returns

boolean

Implementation of

IInputPlugin.isActionActive


isControllerActive()

isControllerActive(controller): boolean

Defined in: plugins/input/InputPlugin.ts:90

Parameters

controller

InputController

Returns

boolean

Implementation of

IInputPlugin.isControllerActive


isGamepadActive()

isGamepadActive(gamepad): boolean

Defined in: plugins/input/InputPlugin.ts:94

Parameters

gamepad

Gamepad

Returns

boolean

Implementation of

IInputPlugin.isGamepadActive


postInitialize()

postInitialize(): void

Defined in: plugins/input/InputPlugin.ts:73

Returns

void

Implementation of

IInputPlugin.postInitialize

Overrides

Plugin.postInitialize