|
rcbench
Servo and ESC test bench: panel, IOmcu and shared C
|
#include <ui_widgets.h>
Data Fields | |
| float | held_s |
| bool | down |
| bool | fired |
| int | flash_ms |
| bool | flash_new |
A hold in progress: how long, whether it has already fired, and the flash that follows it.
The screen owns the touch routing – which of its buttons a press is on – and hands this the four things that happen to the gesture: it began, it left the control, it ended, and time passed. What the hold asked for arriving or going away again is the fifth, and it comes from the bench rather than from the finger.
| bool ui_hold_t::down |
a press is on the control
| bool ui_hold_t::fired |
the hold completed; it does not repeat
| int ui_hold_t::flash_ms |
ms of the flash still to run
| bool ui_hold_t::flash_new |
the flash started and no step has run yet
| float ui_hold_t::held_s |
how long the press has been held