diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-02-13 12:06:14 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-02-13 12:06:14 +1100 |
| commit | 3bb002b6b81851e98fa906a02e3aa25381b9d6b9 (patch) | |
| tree | 9f1a76290bc8efee4e18f258b06cb3b88e295498 /src/ui/include/encoder_input.hpp | |
| parent | 786546653a062c8270e608524de1c0a7e1fc1e6e (diff) | |
| parent | e466522c25758670da335195d60a5d599ed56177 (diff) | |
| download | tangara-fw-3bb002b6b81851e98fa906a02e3aa25381b9d6b9.tar.gz | |
Merge branch 'main' of codeberg.org:cool-tech-zone/tangara-fw
Diffstat (limited to 'src/ui/include/encoder_input.hpp')
| -rw-r--r-- | src/ui/include/encoder_input.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/include/encoder_input.hpp b/src/ui/include/encoder_input.hpp index fbd57f32..7dfac071 100644 --- a/src/ui/include/encoder_input.hpp +++ b/src/ui/include/encoder_input.hpp @@ -38,6 +38,7 @@ class EncoderInput { auto registration() -> lv_indev_t* { return registration_; } auto mode(drivers::NvsStorage::InputModes mode) { mode_ = mode; } + auto scroll_sensitivity(uint8_t val) -> void; // Value between 0-255, used to scale the threshold auto lock(bool l) -> void { is_locked_ = l; } private: @@ -51,6 +52,7 @@ class EncoderInput { drivers::NvsStorage::InputModes mode_; bool is_locked_; + uint8_t scroll_sensitivity_; // Every kind of distinct input that we could map to an action. enum class Keys { |
