Skip to content

inputPlugin

const inputPlugin: Plugin<InputAPI>

Defined in: packages/threeplay/src/plugins/input/index.ts:60

Built-in plugin: keyboard, virtual buttons, mouse, touch, gamepad and inputDir(). DOM events are queued and processed at frameStart, so handlers run inside the frame (scene scoping applies) and results are deterministic. Every on* function is built on the core’s k.on.