summaryrefslogtreecommitdiff
path: root/src/drivers/include
diff options
context:
space:
mode:
authorailurux <ailuruxx@gmail.com>2024-02-12 17:44:55 +1100
committerailurux <ailuruxx@gmail.com>2024-02-12 17:44:55 +1100
commit0426d245c8d863f18babdfbaf21c8673b0746feb (patch)
tree32c78617d954ca6546b0225de68e0acc299e7bca /src/drivers/include
parent527374c72e1ec52e1d5814dbee3587ae100631dd (diff)
downloadtangara-fw-0426d245c8d863f18babdfbaf21c8673b0746feb.tar.gz
Scroll sensitivity configurable, but inverted
Diffstat (limited to 'src/drivers/include')
-rw-r--r--src/drivers/include/nvs.hpp3
-rw-r--r--src/drivers/include/relative_wheel.hpp4
2 files changed, 7 insertions, 0 deletions
diff --git a/src/drivers/include/nvs.hpp b/src/drivers/include/nvs.hpp
index 1184b72c..560cdefd 100644
--- a/src/drivers/include/nvs.hpp
+++ b/src/drivers/include/nvs.hpp
@@ -38,6 +38,9 @@ class NvsStorage {
auto ScreenBrightness() -> uint_fast8_t;
auto ScreenBrightness(uint_fast8_t) -> bool;
+ auto ScrollSensitivity() -> uint_fast8_t;
+ auto ScrollSensitivity(uint_fast8_t) -> bool;
+
auto AmpMaxVolume() -> uint16_t;
auto AmpMaxVolume(uint16_t) -> bool;
diff --git a/src/drivers/include/relative_wheel.hpp b/src/drivers/include/relative_wheel.hpp
index 88077d08..a44e3598 100644
--- a/src/drivers/include/relative_wheel.hpp
+++ b/src/drivers/include/relative_wheel.hpp
@@ -25,6 +25,9 @@ class RelativeWheel {
auto Update() -> void;
auto SetEnabled(bool) -> void;
+ auto SetThreshold(int) -> void;
+ auto GetThreshold() -> int;
+
auto is_clicking() const -> bool;
auto ticks() const -> std::int_fast16_t;
@@ -36,6 +39,7 @@ class RelativeWheel {
TouchWheel& touch_;
bool is_enabled_;
+ int threshold_;
bool is_clicking_;
bool was_clicking_;