Clears the keysPressed
and keysReleased
.
Checks if a key is down.
Checks if a key is up.
keys that are pressed down
keys that have been pressed
keys that have been released
Returns a new state where a key has been pressed.
Returns a new state where a key has been released.
The keyboard input stores the state of the keyboard at a certain point in time. It also accumulates keys that have been pressed and released.
keys that are pressed down
keys that have been pressed
keys that have been released