summaryrefslogtreecommitdiff
path: root/src/drivers/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/include')
-rw-r--r--src/drivers/include/relative_wheel.hpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/drivers/include/relative_wheel.hpp b/src/drivers/include/relative_wheel.hpp
index 6edc006a..5e801aba 100644
--- a/src/drivers/include/relative_wheel.hpp
+++ b/src/drivers/include/relative_wheel.hpp
@@ -26,17 +26,21 @@ class RelativeWheel {
explicit RelativeWheel(TouchWheel* touch);
- // Not copyable or movable.
- RelativeWheel(const RelativeWheel&) = delete;
- RelativeWheel& operator=(const RelativeWheel&) = delete;
-
auto Update() -> void;
+ auto SetEnabled(bool) -> void;
auto is_clicking() -> bool;
auto ticks() -> std::int_fast16_t;
+ // Not copyable or movable.
+ RelativeWheel(const RelativeWheel&) = delete;
+ RelativeWheel& operator=(const RelativeWheel&) = delete;
+
private:
TouchWheel* touch_;
+
+ bool is_enabled_;
+
bool is_clicking_;
bool was_clicking_;
bool is_first_read_;