diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-01-09 15:06:14 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-01-09 15:06:14 +1100 |
| commit | 44fdf696747a2df5b9cbb68865025ecd73004cca (patch) | |
| tree | 7cdcf1754255eb553274e00b543bef96ee52681e /src/ui/include | |
| parent | 09eacb71f0740dba94345ce452d7c4a2c9cdd47f (diff) | |
| download | tangara-fw-44fdf696747a2df5b9cbb68865025ecd73004cca.tar.gz | |
tweak wheel sensitivity, improve AKS for centre button
Diffstat (limited to 'src/ui/include')
| -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; }; |
