diff options
| author | Tab_theFox <tab_thefox@noreply.codeberg.org> | 2025-03-23 17:45:19 +0100 |
|---|---|---|
| committer | Tab_theFox <tab_thefox@noreply.codeberg.org> | 2025-04-22 22:23:47 +0200 |
| commit | dc5676229d19f317b97df6a3d3582bbb02df33df (patch) | |
| tree | 2036ecb5b6fdefaabc6beb9ac7cab21dcadcad56 /src/drivers | |
| parent | 79c9f0b6ccfec97f23563010f134d842c4240582 (diff) | |
| download | tangara-fw-dc5676229d19f317b97df6a3d3582bbb02df33df.tar.gz | |
add single touch shourtcuts for touch wheel
This allows you to use the touch wheel for quick playback control:
- bottom quadrant for play/pause
- left and right quadrant for track skip back / forward
- top quadrant to seek back 25 seconds (handy when listening
to a podcast)
Diffstat (limited to 'src/drivers')
| -rw-r--r-- | src/drivers/include/drivers/nvs.hpp | 1 | ||||
| -rw-r--r-- | src/drivers/nvs.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/drivers/include/drivers/nvs.hpp b/src/drivers/include/drivers/nvs.hpp index b490ac3d..6fc61131 100644 --- a/src/drivers/include/drivers/nvs.hpp +++ b/src/drivers/include/drivers/nvs.hpp @@ -147,6 +147,7 @@ class NvsStorage { kDisabled = 0, kDirectionalWheel = 1, kRotatingWheel = 2, + kWheelWithButtons = 3, }; auto WheelInput() -> WheelInputModes; diff --git a/src/drivers/nvs.cpp b/src/drivers/nvs.cpp index 64ed9c1a..d02c80e2 100644 --- a/src/drivers/nvs.cpp +++ b/src/drivers/nvs.cpp @@ -628,6 +628,8 @@ auto NvsStorage::WheelInput() -> WheelInputModes { return WheelInputModes::kDirectionalWheel; case static_cast<uint8_t>(WheelInputModes::kRotatingWheel): return WheelInputModes::kRotatingWheel; + case static_cast<uint8_t>(WheelInputModes::kWheelWithButtons): + return WheelInputModes::kWheelWithButtons; default: return WheelInputModes::kRotatingWheel; } |
