diff options
| author | Reinhold Gschweicher <pyro4hell@gmail.com> | 2022-01-16 22:37:15 (GMT) |
|---|---|---|
| committer | JF <JF002@users.noreply.github.com> | 2022-04-13 19:33:58 (GMT) |
| commit | 2607c3d79947e900ce4c5ded296f649677511a34 (patch) | |
| tree | cb22b11d9df9296921f8ec33be2393f664e471f5 /src/touchhandler/TouchHandler.h | |
| parent | b498e1d633522eed975d78b04508834b7a79befe (diff) | |
Let TouchHandler return TouchEvents instead of driver specific enum
Let the TouchHandler::GestureGet() function return a TouchEvent instead
of the touchpanel-driver specific enum.
This helps to move the driver specific helper function `ConvertGesture`
from `DisplayApp` into `TouchHandler`.
Diffstat (limited to 'src/touchhandler/TouchHandler.h')
| -rw-r--r-- | src/touchhandler/TouchHandler.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/touchhandler/TouchHandler.h b/src/touchhandler/TouchHandler.h index ed452b3..fb3d265 100644 --- a/src/touchhandler/TouchHandler.h +++ b/src/touchhandler/TouchHandler.h @@ -1,6 +1,6 @@ #pragma once #include "drivers/Cst816s.h" -#include "systemtask/SystemTask.h" +#include "displayapp/TouchEvents.h" namespace Pinetime { namespace Components { @@ -26,13 +26,13 @@ namespace Pinetime { uint8_t GetY() const { return info.y; } - Drivers::Cst816S::Gestures GestureGet(); + Pinetime::Applications::TouchEvents GestureGet(); private: Pinetime::Drivers::Cst816S::TouchInfos info; Pinetime::Drivers::Cst816S& touchPanel; Pinetime::Components::LittleVgl& lvgl; - Pinetime::Drivers::Cst816S::Gestures gesture; + Pinetime::Applications::TouchEvents gesture; bool isCancelled = false; bool gestureReleased = true; }; |
