From 44fdf696747a2df5b9cbb68865025ecd73004cca Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 9 Jan 2024 15:06:14 +1100 Subject: tweak wheel sensitivity, improve AKS for centre button --- src/ui/include/encoder_input.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ui/include/encoder_input.hpp') diff --git a/src/ui/include/encoder_input.hpp b/src/ui/include/encoder_input.hpp index 2386b5c9..fbd57f32 100644 --- a/src/ui/include/encoder_input.hpp +++ b/src/ui/include/encoder_input.hpp @@ -72,6 +72,8 @@ class EncoderInput { // Set of keys that have had an event fired for them since being pressed. std::set fired_; + bool is_scrolling_wheel_; + enum class Trigger { kNone, // Regular short-click. Triggered on release for long-pressable keys, @@ -85,7 +87,7 @@ class EncoderInput { kLongPress, }; - auto HandleKeyState(Keys key, uint64_t ms, bool clicked) -> void; + auto UpdateKeyState(Keys key, uint64_t ms, bool clicked) -> void; auto TriggerKey(Keys key, KeyStyle t, uint64_t ms) -> Trigger; }; -- cgit v1.2.3