#include <Button_Class.hpp>
Definition at line 11 of file Button_Class.hpp.
◆ button_state_t
| Enumerator |
|---|
| state_nochange | |
| state_clicked | |
| state_hold | |
| state_decide_click_count | |
Definition at line 14 of file Button_Class.hpp.
◆ getClickCount()
| std::uint8_t m5::Button_Class::getClickCount |
( |
void |
| ) |
const |
|
inline |
◆ getDebounceThresh()
| std::uint32_t m5::Button_Class::getDebounceThresh |
( |
void |
| ) |
const |
|
inline |
◆ getHoldThresh()
| std::uint32_t m5::Button_Class::getHoldThresh |
( |
void |
| ) |
const |
|
inline |
◆ getState()
◆ getUpdateMsec()
| std::uint32_t m5::Button_Class::getUpdateMsec |
( |
void |
| ) |
const |
|
inline |
◆ isHolding()
| bool m5::Button_Class::isHolding |
( |
void |
| ) |
const |
|
inline |
Returns true if the button is currently held pressed.
Definition at line 42 of file Button_Class.hpp.
◆ isPressed()
| bool m5::Button_Class::isPressed |
( |
void |
| ) |
const |
|
inline |
◆ isReleased()
| bool m5::Button_Class::isReleased |
( |
void |
| ) |
const |
|
inline |
◆ lastChange()
| std::uint32_t m5::Button_Class::lastChange |
( |
void |
| ) |
const |
|
inline |
◆ pressedFor()
| bool m5::Button_Class::pressedFor |
( |
std::uint32_t |
ms | ) |
const |
|
inline |
◆ releasedFor()
| bool m5::Button_Class::releasedFor |
( |
std::uint32_t |
ms | ) |
const |
|
inline |
◆ setDebounceThresh()
| void m5::Button_Class::setDebounceThresh |
( |
std::uint32_t |
msec | ) |
|
|
inline |
◆ setHoldThresh()
| void m5::Button_Class::setHoldThresh |
( |
std::uint32_t |
msec | ) |
|
|
inline |
◆ setRawState()
| void m5::Button_Class::setRawState |
( |
std::uint32_t |
msec, |
|
|
bool |
press |
|
) |
| |
◆ setState()
| void m5::Button_Class::setState |
( |
std::uint32_t |
msec, |
|
|
button_state_t |
state |
|
) |
| |
◆ wasChangePressed()
| bool m5::Button_Class::wasChangePressed |
( |
void |
| ) |
const |
|
inline |
◆ wasClicked()
| bool m5::Button_Class::wasClicked |
( |
void |
| ) |
const |
|
inline |
Returns true when the button is pressed briefly and released.
Definition at line 22 of file Button_Class.hpp.
◆ wasDecideClickCount()
| bool m5::Button_Class::wasDecideClickCount |
( |
void |
| ) |
const |
|
inline |
Returns true when some time has passed since the button was multiple clicked.
Definition at line 34 of file Button_Class.hpp.
◆ wasDeciedClickCount()
| bool m5::Button_Class::wasDeciedClickCount |
( |
void |
| ) |
const |
|
inline |
◆ wasDoubleClicked()
| bool m5::Button_Class::wasDoubleClicked |
( |
void |
| ) |
const |
|
inline |
Returns true when some time has passed since the button was double clicked.
Definition at line 31 of file Button_Class.hpp.
◆ wasHold()
| bool m5::Button_Class::wasHold |
( |
void |
| ) |
const |
|
inline |
Returns true when the button has been held pressed for a while.
Definition at line 25 of file Button_Class.hpp.
◆ wasPressed()
| bool m5::Button_Class::wasPressed |
( |
void |
| ) |
const |
|
inline |
◆ wasReleased()
| bool m5::Button_Class::wasReleased |
( |
void |
| ) |
const |
|
inline |
◆ wasReleasedAfterHold()
| bool m5::Button_Class::wasReleasedAfterHold |
( |
void |
| ) |
const |
|
inline |
◆ wasReleaseFor()
| bool m5::Button_Class::wasReleaseFor |
( |
std::uint32_t |
ms | ) |
const |
|
inline |
◆ wasReleasefor()
| bool m5::Button_Class::wasReleasefor |
( |
std::uint32_t |
ms | ) |
const |
|
inline |
◆ wasSingleClicked()
| bool m5::Button_Class::wasSingleClicked |
( |
void |
| ) |
const |
|
inline |
Returns true when some time has passed since the button was single clicked.
Definition at line 28 of file Button_Class.hpp.
The documentation for this class was generated from the following files: