Skip to content

InputConfig

Defined in: types.ts:19

Configuration for the InputPlugin.

optional actions?: ActionMapDefinition

Defined in: types.ts:23

Action map: action name -> array of physical key codes.


optional cameraKey?: ServiceKey<CameraLike>

Defined in: types.ts:29

Service key for the camera (enables pointer world-coordinate conversion).


optional groups?: Record<string, string[]>

Defined in: types.ts:25

Input groups: group name -> array of action names belonging to it.


optional preventDefaultKeys?: string[]

Defined in: types.ts:27

Key codes to call preventDefault() on (default: none).


optional rendererKey?: ServiceKey<RendererLike>

Defined in: types.ts:31

Service key for the renderer (used to auto-target pointer events to its canvas).


optional target?: HTMLElement

Defined in: types.ts:21

Target element for pointer events (default: canvas from renderer, or document).