Skip to content

@modoki/engine / index / inputHeld

Function: inputHeld()

inputHeld(world, a): boolean

Whether a digital action is currently held.

Parameters

world

World

a

"cancel" | "pause" | "confirm" | "menu" | "jump" | "aim" | "navUp" | "navDown" | "navLeft" | "navRight"

Returns

boolean

Built with Modoki.