MCPcopy Create free account
hub / github.com/LennartHennigs/Button2 / waitForClick

Method waitForClick

src/Button2.cpp:301–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299/////////////////////////////////////////////////////////////////
300
301void Button2::waitForClick(bool keepState /* = false */) {
302 do {
303 while (!wasPressed()) {
304 loop();
305 }
306 } while (read(keepState) != single_click);
307}
308
309/////////////////////////////////////////////////////////////////
310

Callers

nothing calls this directly

Calls 1

loopFunction · 0.50

Tested by

no test coverage detected