InputState
Declaration
enum class InputState {
None,
Pressed,
Held,
Released
};
Notes

Input state transitions. A transition happens each frame, which means:
An input is
Pressed
one frame and will becomeHeld
next frame if it is not released.An input is
Released
one frame and will becomeNone
next frame if it is not pressed.