Skip to content

Input ​

js
ctx.input.onPointerDown(fn)
ctx.input.onObjectPointerDown(fn)
ctx.input.onKeyDown('SPACE', fn)

Input helpers are automatically cleaned up when the preview closes.