#include <pebble_clicks.hpp>
Reference to opaque click recognizer When a ClickHandler callback is called, the recognizer that fired the handler is passed in.
- See also
- ClickHandler
-
NumberOfClicksCounted()
-
GetButtonId()
-
IsRepeating()
◆ ClickRecognizer()
Constructs a ClickRecognizer instance
- Parameters
-
recognizer | Pebble recognizer to wrap |
◆ GetButtonId()
ButtonId Pebble::ClickRecognizer::GetButtonId |
( |
| ) |
|
|
inline |
Gets the button identifier. You can use this inside a click handler implementation to get the button id for the click event.
- Returns
- the ButtonId of the click recognizer
◆ IsRepeating()
bool Pebble::ClickRecognizer::IsRepeating |
( |
| ) |
|
|
inline |
Is this a repeating click. You can use this inside a click handler implementation to find out whether this is a repeating click or not.
- Returns
- true if this is a repeating click.
◆ NumberOfClicksCounted()
uint8_t Pebble::ClickRecognizer::NumberOfClicksCounted |
( |
| ) |
|
|
inline |
Gets the click count. You can use this inside a click handler implementation to get the click count for multi_click and (repeated) click events.
- Returns
- The number of consecutive clicks, and for auto-repeating the number of repetitions.
The documentation for this class was generated from the following file: