fix(lua): re-implement LUA "tap" events (#2646)

Fixes #2617
This commit is contained in:
Raphael Coeffic
2022-10-31 11:22:29 +10:00
committed by GitHub
parent 61a69d5626
commit 6763c97934
2 changed files with 33 additions and 2 deletions
+7
View File
@@ -27,9 +27,16 @@
#include "opentx_types.h"
#define LUA_TAP_TIME 250 // 250 ms
class LuaEventHandler
{
#if defined(HARDWARE_TOUCH)
// "tap" handling
static uint32_t downTime;
static uint32_t tapTime;
static uint32_t tapCount;
// "swipe" / "slide" handling
static tmr10ms_t swipeTimeOut;
static bool _sliding;
static coord_t _startX;