Added touch events to Lua widgets

This commit is contained in:
jfrickmann
2021-07-22 08:02:33 -04:00
parent e1066af88c
commit 0b9fd82074
5 changed files with 166 additions and 14 deletions
+7
View File
@@ -2097,6 +2097,13 @@ const luaR_value_entry opentxConstants[] = {
{ "EVT_ROT_RIGHT", EVT_ROTARY_RIGHT },
#endif
#if defined(HARDWARE_TOUCH)
{ "EVT_TOUCH_FIRST", EVT_TOUCH_FIRST },
{ "EVT_TOUCH_BREAK", EVT_TOUCH_BREAK },
{ "EVT_TOUCH_SLIDE", EVT_TOUCH_SLIDE },
{ "EVT_TOUCH_TAP", EVT_TOUCH_TAP },
#endif
#if LCD_DEPTH > 1 && !defined(COLORLCD)
{ "FILL_WHITE", FILL_WHITE },
{ "GREY_DEFAULT", GREY_DEFAULT },