Core2 for AWS IoT EduKit BSP 1.5.1
Button_WasLongPress
uint8_t Button_WasLongPress(Button_t* button, uint32_t long_press_time);
uint8_t Button_WasLongPress(Button_t *button, uint32_t long_press_time)
See if the specified button press was a long press.
Definition: button.c:59
The member defintions of the virtual button data.
Definition: button.h:28

See if the specified button press was a long press.

Parameters
[out]buttonThe button to check if it was a long press button event. Updates the value of the state definition.
[in]long_press_timeThe time duration to consider a button press a long press.
Returns
A boolean if the button specified was long pressed. 0x00 for not a long button press, 0xff for was a long button press.