aboutsummaryrefslogtreecommitdiffstats
path: root/src/touchhandler/TouchHandler.h
diff options
context:
space:
mode:
authorRiku Isokoski <riksu9000@gmail.com>2023-02-23 13:28:04 +0200
committerRiku Isokoski <riksu9000@gmail.com>2023-02-24 00:05:21 +0200
commit7066ff5aba3d2643a35ba98379ff24143da99c3c (patch)
tree79f997e532579529f6c5bcf0be0380d5160db993 /src/touchhandler/TouchHandler.h
parent6542f255cdb38c5c3baba47ef50993e2c5a2bcc5 (diff)
touchhandler: Remove LVGL dependency
Move LVGL specific code to the LittleVgl class
Diffstat (limited to 'src/touchhandler/TouchHandler.h')
-rw-r--r--src/touchhandler/TouchHandler.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/touchhandler/TouchHandler.h b/src/touchhandler/TouchHandler.h
index afce2844..9afaa247 100644
--- a/src/touchhandler/TouchHandler.h
+++ b/src/touchhandler/TouchHandler.h
@@ -3,10 +3,6 @@
#include "displayapp/TouchEvents.h"
namespace Pinetime {
- namespace Components {
- class LittleVgl;
- }
-
namespace Drivers {
class Cst816S;
}
@@ -14,10 +10,9 @@ namespace Pinetime {
namespace Controllers {
class TouchHandler {
public:
- explicit TouchHandler(Drivers::Cst816S&, Components::LittleVgl&);
- void CancelTap();
+ explicit TouchHandler(Drivers::Cst816S&);
+
bool GetNewTouchInfo();
- void UpdateLvglTouchPoint();
bool IsTouching() const {
return info.touching;
@@ -36,7 +31,6 @@ namespace Pinetime {
private:
Pinetime::Drivers::Cst816S::TouchInfos info;
Pinetime::Drivers::Cst816S& touchPanel;
- Pinetime::Components::LittleVgl& lvgl;
Pinetime::Applications::TouchEvents gesture;
bool isCancelled = false;
bool gestureReleased = true;