Skip to main content

wasPressed

Description

Returns true if the button state was pressed at the last read.

bool was_pressed = button.wasPressed();