From dc5676229d19f317b97df6a3d3582bbb02df33df Mon Sep 17 00:00:00 2001 From: Tab_theFox Date: Sun, 23 Mar 2025 17:45:19 +0100 Subject: 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) --- src/drivers/include/drivers/nvs.hpp | 1 + src/drivers/nvs.cpp | 2 ++ 2 files changed, 3 insertions(+) (limited to 'src/drivers') 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(WheelInputModes::kRotatingWheel): return WheelInputModes::kRotatingWheel; + case static_cast(WheelInputModes::kWheelWithButtons): + return WheelInputModes::kWheelWithButtons; default: return WheelInputModes::kRotatingWheel; } -- cgit v1.2.3