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.
Methods
Section titled “Methods”hasAction()
Section titled “hasAction()”hasAction(
name):boolean
Defined in: ui/src/focus/UIFocusScope.ts:55
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”boolean
isJustPressed()
Section titled “isJustPressed()”isJustPressed(
action,options?):boolean
Defined in: ui/src/focus/UIFocusScope.ts:41
Parameters
Section titled “Parameters”action
Section titled “action”string
options?
Section titled “options?”repeat?
Section titled “repeat?”boolean
repeatDelay?
Section titled “repeatDelay?”number
repeatInterval?
Section titled “repeatInterval?”number
Returns
Section titled “Returns”boolean
isJustReleasedByPlayer()
Section titled “isJustReleasedByPlayer()”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.
Parameters
Section titled “Parameters”action
Section titled “action”string
Returns
Section titled “Returns”boolean
isPressed()
Section titled “isPressed()”isPressed(
action):boolean
Defined in: ui/src/focus/UIFocusScope.ts:40
Parameters
Section titled “Parameters”action
Section titled “action”string
Returns
Section titled “Returns”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.