APIwasPressedOn this pagewasPressedDescription Returns true if the button state was pressed at the last read. bool was_pressed = button.wasPressed();