Skip to content

InputPlugin

Defined in: InputPlugin.ts:21

Input plugin — wires keyboard and pointer listeners, registers InputManager.

  • Plugin

new InputPlugin(config?): InputPlugin

Defined in: InputPlugin.ts:31

InputConfig

InputPlugin

readonly name: "input" = "input"

Defined in: InputPlugin.ts:22

Unique plugin name.

Plugin.name


readonly version: "2.0.0" = "2.0.0"

Defined in: InputPlugin.ts:23

Semantic version string.

Plugin.version

install(context): void

Defined in: InputPlugin.ts:35

Install services into the engine context. Called in topological order.

EngineContext

void

Plugin.install


onDestroy(): void

Defined in: InputPlugin.ts:266

Called when the engine is destroyed.

void

Plugin.onDestroy


onStart(): void

Defined in: InputPlugin.ts:261

Called after all plugins are installed and the engine has started.

void

Plugin.onStart


registerSystems(scheduler): void

Defined in: InputPlugin.ts:253

Register systems with the scheduler. Called after install.

SystemScheduler

void

Plugin.registerSystems