diff options
| author | ailurux <ailuruxx@gmail.com> | 2024-02-12 17:44:55 +1100 |
|---|---|---|
| committer | ailurux <ailuruxx@gmail.com> | 2024-02-12 17:44:55 +1100 |
| commit | 0426d245c8d863f18babdfbaf21c8673b0746feb (patch) | |
| tree | 32c78617d954ca6546b0225de68e0acc299e7bca /src/ui/include | |
| parent | 527374c72e1ec52e1d5814dbee3587ae100631dd (diff) | |
| download | tangara-fw-0426d245c8d863f18babdfbaf21c8673b0746feb.tar.gz | |
Scroll sensitivity configurable, but inverted
Diffstat (limited to 'src/ui/include')
| -rw-r--r-- | src/ui/include/encoder_input.hpp | 2 | ||||
| -rw-r--r-- | src/ui/include/ui_fsm.hpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/include/encoder_input.hpp b/src/ui/include/encoder_input.hpp index fbd57f32..17e278b2 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; 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 { diff --git a/src/ui/include/ui_fsm.hpp b/src/ui/include/ui_fsm.hpp index 52ab77a5..ffaff0bb 100644 --- a/src/ui/include/ui_fsm.hpp +++ b/src/ui/include/ui_fsm.hpp @@ -128,7 +128,7 @@ class UiState : public tinyfsm::Fsm<UiState> { static lua::Property sDisplayBrightness; static lua::Property sControlsScheme; - static lua::Property sControlSensitivity; + static lua::Property sScrollSensitivity; static lua::Property sDatabaseUpdating; }; |
