From 0426d245c8d863f18babdfbaf21c8673b0746feb Mon Sep 17 00:00:00 2001 From: ailurux Date: Mon, 12 Feb 2024 17:44:55 +1100 Subject: Scroll sensitivity configurable, but inverted --- src/drivers/include/relative_wheel.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/drivers/include/relative_wheel.hpp') 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_; -- cgit v1.2.3