From 8ed6ffaaf8d0ad681c4f84b89e4a72792edb5a8f Mon Sep 17 00:00:00 2001 From: JF Date: Sun, 15 Mar 2020 21:01:24 +0100 Subject: Add the possibility to the screen to handle a touch gesture. A default action is taken if the current screen doesn't handle it. --- src/DisplayApp/DisplayApp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/DisplayApp/DisplayApp.h') diff --git a/src/DisplayApp/DisplayApp.h b/src/DisplayApp/DisplayApp.h index ccbca4c3..38edd056 100644 --- a/src/DisplayApp/DisplayApp.h +++ b/src/DisplayApp/DisplayApp.h @@ -15,6 +15,7 @@ #include "LittleVgl.h" #include #include +#include "TouchEvents.h" namespace Pinetime { @@ -26,8 +27,7 @@ namespace Pinetime { public: enum class States {Idle, Running}; enum class Messages : uint8_t {GoToSleep, GoToRunning, UpdateDateTime, UpdateBleConnection, UpdateBatteryLevel, TouchEvent, SwitchScreen,ButtonPushed} ; - enum class TouchEvents { None, Tap, SwipeLeft, SwipeRight, SwipeUp, SwipeDown, LongTap, DoubleTap - }; + DisplayApp(Pinetime::Drivers::St7789& lcd, Pinetime::Components::LittleVgl& lvgl, Pinetime::Drivers::Cst816S&, -- cgit v1.2.3-70-g09d2