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/tangara/lua/lua_controls.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/tangara/lua/lua_controls.cpp') diff --git a/src/tangara/lua/lua_controls.cpp b/src/tangara/lua/lua_controls.cpp index 69053f43..f1305c55 100644 --- a/src/tangara/lua/lua_controls.cpp +++ b/src/tangara/lua/lua_controls.cpp @@ -36,7 +36,11 @@ static auto wheel_schemes(lua_State* L) -> int { lua_pushliteral(L, "Touchwheel"); lua_rawseti( - L, -2, static_cast(drivers::NvsStorage::WheelInputModes::kRotatingWheel)); + L, -2, static_cast(drivers::NvsStorage::WheelInputModes::kRotatingWheel)); + + lua_pushliteral(L, "Wheel with Buttons"); + lua_rawseti(L, -2, + static_cast(drivers::NvsStorage::WheelInputModes::kWheelWithButtons)); return 1; } -- cgit v1.2.3