diff options
Diffstat (limited to 'src/ui/include/encoder_input.hpp')
| -rw-r--r-- | src/ui/include/encoder_input.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
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<Keys> 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; }; |
