Struct ButtonPollState
Defined in File action-snapshot.h
Struct Documentation
-
struct ButtonPollState
State at one completed input poll; both edges may be true for a press and release in that poll.
Public Functions
-
inline bool held() const
Declaration:
[[nodiscard]]
-
inline bool pressed() const
Declaration:
[[nodiscard]]
-
inline bool released() const
Declaration:
[[nodiscard]]
Public Members
-
bool current = false
-
bool previous = false
-
bool pressed_this_poll = false
-
bool released_this_poll = false
-
std::uint64_t press_count = 0
-
std::uint64_t release_count = 0
-
std::optional<CE::Input::ObservationClock::time_point> hold_started_at
-
std::vector<CE::Input::ObservationDuration> completed_holds
-
inline bool held() const