Skip to content

PressRepeatOptions

Defined in: types.ts:85

Options for InputManager.isJustPressed.

clock selects the clock the repeat schedule is counted on: the SceneTime of a scene on the stack. The initial press edge always resolves against the caller’s frame or fixed-step window. Omitted, repeats count on the raw input clock, so a menu keeps repeating while the scene under it is paused.

optional clock?: InputClock

Defined in: types.ts:68

Clock the duration is measured on — the SceneTime of a scene on the stack. Any other clock throws. Omit for the raw input clock (getClockTime()), which ignores pause and time scale.

HoldDurationOptions.clock


optional repeat?: boolean

Defined in: types.ts:87

Whether a held action produces repeat edges. Default false.


optional repeatDelay?: number

Defined in: types.ts:89

Seconds held before the first repeat. Default 0.35.


optional repeatInterval?: number

Defined in: types.ts:91

Seconds between repeats after the first. Default 0.1.

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.