diff options
| author | JF <jf@codingfield.com> | 2020-03-15 21:01:24 +0100 |
|---|---|---|
| committer | JF <jf@codingfield.com> | 2020-03-15 21:01:24 +0100 |
| commit | 8ed6ffaaf8d0ad681c4f84b89e4a72792edb5a8f (patch) | |
| tree | 594ce4ca20956b61bd796d8aabb64a1ae78c425e /src/DisplayApp/DisplayApp.h | |
| parent | 2c55ab20b4f52d21a04e1d0ee049f7c4ca0196de (diff) | |
Add the possibility to the screen to handle a touch gesture.
A default action is taken if the current screen doesn't handle it.
Diffstat (limited to 'src/DisplayApp/DisplayApp.h')
| -rw-r--r-- | src/DisplayApp/DisplayApp.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 <date/date.h> #include <DisplayApp/Screens/Clock.h> +#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&, |
