diff options
| author | Riku Isokoski <riksu9000@gmail.com> | 2023-02-23 13:28:04 +0200 |
|---|---|---|
| committer | Riku Isokoski <riksu9000@gmail.com> | 2023-02-24 00:05:21 +0200 |
| commit | 7066ff5aba3d2643a35ba98379ff24143da99c3c (patch) | |
| tree | 79f997e532579529f6c5bcf0be0380d5160db993 /src/displayapp/LittleVgl.h | |
| parent | 6542f255cdb38c5c3baba47ef50993e2c5a2bcc5 (diff) | |
touchhandler: Remove LVGL dependency
Move LVGL specific code to the LittleVgl class
Diffstat (limited to 'src/displayapp/LittleVgl.h')
| -rw-r--r-- | src/displayapp/LittleVgl.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/displayapp/LittleVgl.h b/src/displayapp/LittleVgl.h index 0a45b438..e36d1545 100644 --- a/src/displayapp/LittleVgl.h +++ b/src/displayapp/LittleVgl.h @@ -23,7 +23,8 @@ namespace Pinetime { void FlushDisplay(const lv_area_t* area, lv_color_t* color_p); bool GetTouchPadInfo(lv_indev_data_t* ptr); void SetFullRefresh(FullRefreshDirections direction); - void SetNewTouchPoint(uint16_t x, uint16_t y, bool contact); + void SetNewTouchPoint(int16_t x, int16_t y, bool contact); + void CancelTap(); bool GetFullRefresh() { bool returnValue = fullRefresh; @@ -58,9 +59,9 @@ namespace Pinetime { uint16_t writeOffset = 0; uint16_t scrollOffset = 0; - uint16_t tap_x = 0; - uint16_t tap_y = 0; + lv_point_t touchPoint = {0}; bool tapped = false; + bool isCancelled = false; }; } } |
