From 0f5cf25e73fb2e789b472317966ff80323dddd75 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Fri, 25 Aug 2023 16:59:39 +1000 Subject: More performance and usability tweaks - pin ui and decoder to opposite cores - disable touch wheel when controls are locked --- src/drivers/include/relative_wheel.hpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/drivers/include') 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_; -- cgit v1.2.3