Skip to content

@modoki/engine / index / inputPressed

Function: inputPressed() ​

inputPressed(world, a): boolean

Rising-edge: true only on the frame the action went down (once per press).

Parameters ​

world ​

World

a ​

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

Returns ​

boolean

Built with Modoki.