mapping name, can be "wasd", "zqsd", "ijkl", "hjkl" or ""
Return true if any of the keys passed in the array parameter is down.
Return true if the button is held down.
check if a key has been pressed. Return true only once per press.
Return a vector in the direction of the movement according to the keyboard.
Check if a button is currently being held down.
Check if a button have just been pressed.
Return the value of the axis between -1 and 1.
Return true if the gamepad is useable.
Return the number of connected gamepads
return true as long as a key is held down
check if a key has been pressed. Return true only once per press.
Update hidden states.
Setup an event handler for all
Refresh the gamepad list
Change the mapping mode, can be "wasd", "zqsd", "ijkl", "hjkl" or ""
Start the monitoring of input events.
Stop the listeners for events.
Generated using TypeDoc
State for input handling.