Skip to content

InputClock

Defined in: types.ts:42

A time source a hold duration or a buffered-press window can be measured on. SceneTime satisfies it, so a caller passes the scene’s own clock: input.getHoldDuration("charge", { clock: this.use(SceneTimeKey) }).

The input plugin registers the SceneTime of every scene the engine enters, and those are the only clocks the queries accept: presses and hold starts are stamped on each known clock as they happen, which a clock the manager has never seen cannot receive. Satisfying this shape does not on its own make an object usable.

readonly elapsed: number

Defined in: types.ts:44

Seconds elapsed on this clock. Monotonically non-decreasing.