Skip to content

InputConfig

Defined in: types.ts:21

Configuration for the InputPlugin.

optional actions?: ActionMapDefinition

Defined in: types.ts:25

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


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

Defined in: types.ts:27

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


optional preventDefaultKeys?: string[]

Defined in: types.ts:29

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


optional rendererKey?: ServiceKey<RendererAdapter>

Defined in: types.ts:38

Optional override for the renderer service key. When omitted, InputPlugin auto-resolves RendererAdapterKey — the canonical @yagejs/renderer plugin registers itself under that key, so pointer events target its canvas and coordinates route through canvasToVirtual out of the box. Set this only if you ship a custom renderer registered under a different key.


optional target?: HTMLElement

Defined in: types.ts:23

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