rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
ui_hold_t Struct Reference

#include <ui_widgets.h>

Data Fields

float held_s
bool down
bool fired
int flash_ms
bool flash_new

Detailed Description

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.

Field Documentation

◆ down

bool ui_hold_t::down

a press is on the control

◆ fired

bool ui_hold_t::fired

the hold completed; it does not repeat

◆ flash_ms

int ui_hold_t::flash_ms

ms of the flash still to run

◆ flash_new

bool ui_hold_t::flash_new

the flash started and no step has run yet

◆ held_s

float ui_hold_t::held_s

how long the press has been held


The documentation for this struct was generated from the following file: