Replies: 2 comments
-
CURRENTUse cases when designing user interaction.
Coding with "single function key" option has visible UX/UI impact (it's faster) due to the fact there is no delay to check if user wanted LONG press. When UX is coded with FIRST event overall UI speed is slighly faster. |
Beta Was this translation helpful? Give feedback.
-
EdgeTX 3.0 ImplementationEVT_xxx naming There are two kinds of EVT_xxx constants.
Physical constants Going through available keys constants: a. EVT_ENTER_xxx -> OK b. EVT_EXIT_xxx -> OK
c. EVT_MENU_xxx -> OK
d. EVT_PLUS_xxx, EVT_MINUS_xxx -> OK
e. EVT_PAGE_xxx -> OK
f. EVT_PAGEUP_xxx -> EVT_PAGENEXT_xxx
g. EVT_PAGEDN_xxx -> EVT_PAGEPREV_xxx
h. EVT_ROT_RIGHT -> EVT_ROT_NEXT
j. EVT_ROT_LEFT -> EVT_ROT_PREV
k. EVT_SYS_xxx -> OK l. EVT_MODEL_xxx -> EVT_MDL_xxx
m. EVT_TELEM_xxx -> EVT_TELE_xxx
n. EVT_UP_xxx, EVT_DOWN_xxx, EVT_LEFT_xxx, EVT_RIGHT
o. EVT_SHIFT_xxx -> EVT_OPT_xxx
Virtual constants Virtual events contants are just alias to one of hardware key contants. For most LUA dev use cases virtual EVT constants should be choosen
a. EVT_VIRTUAL_PREV This list should be verified but looking what is defined I can see that inital idea drifted. a. EVT_VIRTUAL_ENTER regarding other vistual constants
We should introduce
|
Beta Was this translation helpful? Give feedback.
-
CURRENT
There are four types of events generated when a key is pressed on the radio:
FIRST - when the key first pressed.
BREAK - when the key is released.
LONG - when the key is held down for a bit.
REPT - when the key is held down for a bit longer (this can be sent multiple times).
Event constants are generated based on hardware key name and type of event (xxx)
EVT_PAGE_xxx
EVT_MENU_xxx
EVT_ENTER_xxx
EVT_EXIT_xxx
EVT_PLUS_xxx
EVT_MINUS_xxx
EVT_ROT_LEFT
EVT_ROT_RIGHT
EVT_UP_xxx
EVT_DOWN_xxx
EVT_RIGHT_xxx
EVT_LEFT_xxx
EVT_SHIFT_xxx
EVT_PAGE_xxx
EVT_PAGEUP_xxx
EVT_PAGEDN_xxx
EVT_SYS_xxx
EVT_MODEL_xxx
EVT_TELEM_xxx
if radio is equiped with touch screen aditionally touch events constants are defined
EVT_TOUCH_FIRST
EVT_TOUCH_BREAK
EVT_TOUCH_SLIDE
EVT_TOUCH_TAP
Beta Was this translation helpful? Give feedback.
All reactions