summaryrefslogtreecommitdiff
path: root/src/touchhandler/TouchHandler.h
diff options
context:
space:
mode:
authorRiku Isokoski <riksu9000@gmail.com>2021-08-10 19:03:34 (GMT)
committerRiku Isokoski <riksu9000@gmail.com>2021-08-10 19:03:34 (GMT)
commit8a694adb0979339664da0af6d51c480d26c5527b (patch)
tree89c0deb381b34d3060edfcee249a9e5177244e67 /src/touchhandler/TouchHandler.h
parent7e92577c14895f57f5adda27ad54adbbc4b7ffe9 (diff)
Rework TouchHandler into not a task
Diffstat (limited to 'src/touchhandler/TouchHandler.h')
-rw-r--r--src/touchhandler/TouchHandler.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/touchhandler/TouchHandler.h b/src/touchhandler/TouchHandler.h
index 6b8189f..38cb36c 100644
--- a/src/touchhandler/TouchHandler.h
+++ b/src/touchhandler/TouchHandler.h
@@ -19,9 +19,9 @@ namespace Pinetime {
public:
explicit TouchHandler(Drivers::Cst816S&, Components::LittleVgl&);
void CancelTap();
+ bool GetNewTouchInfo();
+ void UpdateLvglTouchPoint();
void Register(Pinetime::System::SystemTask* systemTask);
- void Start();
- void WakeUp();
bool IsTouching() const {
return info.touching;
@@ -34,16 +34,13 @@ namespace Pinetime {
}
Drivers::Cst816S::Gestures GestureGet();
private:
- static void Process(void* instance);
- void Work();
Pinetime::Drivers::Cst816S::TouchInfos info;
- Pinetime::System::SystemTask* systemTask = nullptr;
- TaskHandle_t taskHandle;
Pinetime::Drivers::Cst816S& touchPanel;
Pinetime::Components::LittleVgl& lvgl;
Pinetime::Drivers::Cst816S::Gestures gesture;
bool isCancelled = false;
+ bool slideReleased = true;
};
}
}