Skip to main content

KeyState

The KeyState enum represents the various states of a key in the game.


Definition

enum KeyState {
Up = 'up',
Down = 'down',
JustUp = 'just_up',
JustDown = 'just_down',
}

Enum Values

  • Up: The key is up.
  • Down: The key is down.
  • JustUp: The key was just released.
  • JustDown: The key was just pressed.