summaryrefslogtreecommitdiff
path: root/src/touchhandler/TouchHandler.h
diff options
context:
space:
mode:
authorRiku Isokoski <riksu9000@gmail.com>2021-07-16 11:55:29 +0300
committerRiku Isokoski <riksu9000@gmail.com>2021-07-16 11:55:29 +0300
commit329482f87308c185e970b141bcbfe9c83b46c4da (patch)
treed26143a1994f306c675e6f4f317c3ba457f102b3 /src/touchhandler/TouchHandler.h
parentbaffa1594f9c1a03a95f0cc10955e3cf8bf880ce (diff)
Fix remaining known issues
Diffstat (limited to 'src/touchhandler/TouchHandler.h')
-rw-r--r--src/touchhandler/TouchHandler.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/touchhandler/TouchHandler.h b/src/touchhandler/TouchHandler.h
index 37ef5af2..6b8189f5 100644
--- a/src/touchhandler/TouchHandler.h
+++ b/src/touchhandler/TouchHandler.h
@@ -22,23 +22,28 @@ namespace Pinetime {
void Register(Pinetime::System::SystemTask* systemTask);
void Start();
void WakeUp();
+
+ bool IsTouching() const {
+ return info.touching;
+ }
uint8_t GetX() const {
- return x;
+ return info.x;
}
uint8_t GetY() const {
- return y;
+ return info.y;
}
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;
- uint8_t x, y;
};
}
}