InputClock
Defined in: types.ts:29
A time source a buffered-press window can be measured on. SceneTime
satisfies it, so a caller passes the scene’s own clock:
input.consumeBufferedPress("jump", 0.12, { clock: this.use(SceneTimeKey) }).
The input plugin registers the SceneTime of every scene the engine enters,
and those are the only clocks the query accepts: a press is stamped on each
known clock as it happens, which a clock the manager has never seen cannot
receive. Satisfying this shape does not on its own make an object usable.
Properties
Section titled “Properties”elapsed
Section titled “elapsed”
readonlyelapsed:number
Defined in: types.ts:31
Seconds elapsed on this clock. Monotonically non-decreasing.