Keeps track of keyboard state, and can be asked for pressed keys Intended to be accessed through a World instance:
if (world.keyboard.pressed(Key.Up)) { console.log("Arrow up pressed") }
A key to query for state
true | false depending on if key is pressed
Generated using TypeDoc
Keeps track of keyboard state, and can be asked for pressed keys Intended to be accessed through a World instance:
if (world.keyboard.pressed(Key.Up)) { console.log("Arrow up pressed") }