Skip to content

InputActionSource

Defined in: types.ts:230

An independently releasable producer of sustained action presses.

Create one per virtual device or automation driver. Two sources can hold the same action without either source releasing the other’s press.

releaseAll(): void

Defined in: types.ts:234

Release every action held by this source.

void


setHeld(action, held): void

Defined in: types.ts:232

Start or end this source’s hold. Starting an unknown action throws.

string

boolean

void

Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/input.md.