summaryrefslogtreecommitdiff
path: root/src/touchhandler/TouchHandler.h
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-06-06 18:27:54 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-06-06 23:09:58 (GMT)
commit7c45f185a32c7bcff47c8fda1acdec82d3213717 (patch)
tree53b0419fe2a19e6ec5c89d0be0a11dcd8d4ceb00 /src/touchhandler/TouchHandler.h
parent94b1b330fc1f6e941a797fedabade4e790e28bc2 (diff)
parent35dcf8c8607483c104711c9398d47d57147f4389 (diff)
Merge remote-tracking branch 'origin/develop' into analog24
Diffstat (limited to 'src/touchhandler/TouchHandler.h')
-rw-r--r--src/touchhandler/TouchHandler.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/touchhandler/TouchHandler.h b/src/touchhandler/TouchHandler.h
index fb3d265..332041e 100644
--- a/src/touchhandler/TouchHandler.h
+++ b/src/touchhandler/TouchHandler.h
@@ -11,30 +11,30 @@ namespace Pinetime {
}
namespace Controllers {
class TouchHandler {
- public:
- explicit TouchHandler(Drivers::Cst816S&, Components::LittleVgl&);
- void CancelTap();
- bool GetNewTouchInfo();
- void UpdateLvglTouchPoint();
+ public:
+ explicit TouchHandler(Drivers::Cst816S&, Components::LittleVgl&);
+ void CancelTap();
+ bool GetNewTouchInfo();
+ void UpdateLvglTouchPoint();
- bool IsTouching() const {
- return info.touching;
- }
- uint8_t GetX() const {
- return info.x;
- }
- uint8_t GetY() const {
- return info.y;
- }
- Pinetime::Applications::TouchEvents GestureGet();
- private:
+ bool IsTouching() const {
+ return info.touching;
+ }
+ uint8_t GetX() const {
+ return info.x;
+ }
+ uint8_t GetY() const {
+ return info.y;
+ }
+ Pinetime::Applications::TouchEvents GestureGet();
- Pinetime::Drivers::Cst816S::TouchInfos info;
- Pinetime::Drivers::Cst816S& touchPanel;
- Pinetime::Components::LittleVgl& lvgl;
- Pinetime::Applications::TouchEvents gesture;
- bool isCancelled = false;
- bool gestureReleased = true;
+ private:
+ Pinetime::Drivers::Cst816S::TouchInfos info;
+ Pinetime::Drivers::Cst816S& touchPanel;
+ Pinetime::Components::LittleVgl& lvgl;
+ Pinetime::Applications::TouchEvents gesture;
+ bool isCancelled = false;
+ bool gestureReleased = true;
};
}
}