Structure for remembering the state of each button. More...
#include <Checks.h>
Public Attributes | |
bool | isPressed |
Button is pressed. More... | |
bool | isHeld |
Button is held. More... | |
bool | isIdle |
Button is idle. More... | |
bool | isClicked |
Button clicked (pressed+released). More... | |
bool | isSingleClicked |
Button single-clicked. More... | |
bool | isDoubleClicked |
Button double-clicked. More... | |
bool | wasStarted |
Button received begin callback. More... | |
bool | wasPressed |
Button received pressed callback. More... | |
bool | wasReleased |
Button received released callback. More... | |
bool | wasHeld |
Button received held callback. More... | |
bool | wasIdle |
Button received idle callback. More... | |
bool | wasClicked |
Button received clicked callback. More... | |
bool | wasSingleClicked |
Button received single-clicked callback. More... | |
bool | resetSingleClicked |
bool | wasDoubleClicked |
Button received double-clicked callback. More... | |
bool | resetDoubleClicked |
Structure for remembering the state of each button.
Used to compare to the current state to track different checks.
bool ButtonState::isClicked |
bool ButtonState::wasClicked |
bool ButtonState::wasDoubleClicked |
bool ButtonState::wasPressed |
bool ButtonState::wasReleased |
bool ButtonState::wasSingleClicked |
bool ButtonState::wasStarted |