Skip to content

UIFocusInputSource

Defined in: ui/src/focus/UIFocusScope.ts:39

The slice of an input manager a scope reads. Structural, so @yagejs/ui names no type from the optional peer @yagejs/input.

hasAction(name): boolean

Defined in: ui/src/focus/UIFocusScope.ts:55

string

boolean


isJustPressed(action, options?): boolean

Defined in: ui/src/focus/UIFocusScope.ts:41

string

boolean

number

number

boolean


isJustReleasedByPlayer(action): boolean

Defined in: ui/src/focus/UIFocusScope.ts:54

Whether the player let go of the action, as opposed to the engine dropping the hold (window blur, disabled action group). A confirm press runs its element’s action only on this.

string

boolean


isPressed(action): boolean

Defined in: ui/src/focus/UIFocusScope.ts:40

string

boolean

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/ui.md.