diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-06-26 12:55:46 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-06-26 12:55:46 +1000 |
| commit | 9763cc955c4f3b2c2af54b61c2c5ad77afef9603 (patch) | |
| tree | bdfef9f5685fac3088cf4d59400e888a1b0ffb8b /src/ui/include | |
| parent | c124c8f94dbdb41a7e535b741fe2d2be8e7346c0 (diff) | |
| download | tangara-fw-9763cc955c4f3b2c2af54b61c2c5ad77afef9603.tar.gz | |
Improve encoder driver
It actually works and clicks now!
Still a bit rough though. Need to dive into lvgl internals to work out
what it's doing with enc_diff
Diffstat (limited to 'src/ui/include')
| -rw-r--r-- | src/ui/include/wheel_encoder.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/include/wheel_encoder.hpp b/src/ui/include/wheel_encoder.hpp index d4975db9..c49e5929 100644 --- a/src/ui/include/wheel_encoder.hpp +++ b/src/ui/include/wheel_encoder.hpp @@ -8,6 +8,7 @@ #include <memory> +#include "core/lv_group.h" #include "hal/lv_hal_indev.h" #include "relative_wheel.hpp" @@ -24,6 +25,8 @@ class TouchWheelEncoder { private: lv_indev_drv_t driver_; lv_indev_t* registration_; + + lv_key_t last_key_; std::weak_ptr<drivers::RelativeWheel> wheel_; }; |
