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/tangara/lua/lua_controls.cpp | |
| 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/tangara/lua/lua_controls.cpp')
| -rw-r--r-- | src/tangara/lua/lua_controls.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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<int>(drivers::NvsStorage::WheelInputModes::kRotatingWheel)); + L, -2, static_cast<int>(drivers::NvsStorage::WheelInputModes::kRotatingWheel)); + + lua_pushliteral(L, "Wheel with Buttons"); + lua_rawseti(L, -2, + static_cast<int>(drivers::NvsStorage::WheelInputModes::kWheelWithButtons)); return 1; } |
