InputState
Declaration
enum class InputState {
None,
Pressed,
Held,
Released
};
Notes
Input state transitions. A transition happens each frame, which means:
An input is
Pressedone frame and will becomeHeldnext frame if it is not released.An input is
Releasedone frame and will becomeNonenext frame if it is not pressed.