mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 01:35:21 +03:00
Rotary encoder refactoring
This commit is contained in:
parent
4f6828aa1c
commit
c28210e3e4
60 changed files with 363 additions and 652 deletions
|
@ -163,13 +163,6 @@ void pauseEvents(event_t event)
|
|||
// Disables any further event generation (BREAK and REPEAT) for this key, until the key is released
|
||||
void killEvents(event_t event)
|
||||
{
|
||||
#if defined(ROTARY_ENCODERS)
|
||||
if (event == EVT_ROTARY_LONG) {
|
||||
killEvents(BTN_REa + g_eeGeneral.reNavigation - 1);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
event = EVT_KEY_MASK(event);
|
||||
if (event < (int)DIM(keys)) {
|
||||
keys[event].killEvents();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue