Whether to prevent the default key action or not. Defaults to false.
Used internally to initialise the keyboard input.
Used internally to update the keyboard's keys state.
Check if a key is down.
The key to check.
Check if a key is pressed (fires only when the key is clicked).
The key to check.
Get the last key that was pressed.
Can for example be used in a settings menu when asking the user the desired
key-binding.
The value is reset to null or to the new last key each frame.
The last key pressed, or null if no key was previously pressed.
Generated using TypeDoc
Map the keyboard and the state of each keys.