diff options
author | Riku Isokoski <riksu9000@gmail.com> | 2021-07-16 01:49:20 +0300 |
---|---|---|
committer | Riku Isokoski <riksu9000@gmail.com> | 2021-07-16 01:49:20 +0300 |
commit | 93ccbf38e81b30165e49e897c01cac2eb54cc331 (patch) | |
tree | d8e1098b5dfebeb170388ccfa70b611a0900542b /src/displayapp | |
parent | 2a3e1263906d1145d6b539ff019362f0077d8097 (diff) |
Fix touch wakeup and code cleanup
Diffstat (limited to 'src/displayapp')
-rw-r--r-- | src/displayapp/LittleVgl.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/displayapp/LittleVgl.cpp b/src/displayapp/LittleVgl.cpp index b5669713..2bd5e57b 100644 --- a/src/displayapp/LittleVgl.cpp +++ b/src/displayapp/LittleVgl.cpp @@ -181,27 +181,6 @@ bool LittleVgl::GetTouchPadInfo(lv_indev_data_t* ptr) { ptr->state = LV_INDEV_STATE_REL; } return false; - /* - auto info = touchPanel.GetTouchInfo(); - - if((previousClick.x != info.x || previousClick.y != info.y) && - (info.gesture == Drivers::Cst816S::Gestures::SingleTap)) { - // TODO For an unknown reason, the first touch is taken twice into account. - // 'firstTouch' is a quite'n'dirty workaound until I find a better solution - if(firstTouch) ptr->state = LV_INDEV_STATE_REL; - else ptr->state = LV_INDEV_STATE_PR; - firstTouch = false; - previousClick.x = info.x; - previousClick.y = info.y; - } - else { - ptr->state = LV_INDEV_STATE_REL; - } - - ptr->point.x = info.x; - ptr->point.y = info.y; - return false; - */ } void LittleVgl::InitTheme() { |