summaryrefslogtreecommitdiff
path: root/src/tangara/ui/ui_fsm.cpp
diff options
context:
space:
mode:
authorTess Eisenberger <github@teisen.be>2025-02-01 16:15:17 -0800
committerteisenbe <teisenbe@noreply.codeberg.org>2025-02-02 04:48:42 +0000
commit1d485c97b0c03577a40b34fb762c76e98f417fa4 (patch)
tree38e42bdf95e99d26f39a3a30499ae96d6f07c877 /src/tangara/ui/ui_fsm.cpp
parente8eaf3df10a896cb28e91cfc416b19303926a00a (diff)
downloadtangara-fw-1d485c97b0c03577a40b34fb762c76e98f417fa4.tar.gz
Add optional support for changing volume while locked
This adds a new Controls setting for adjusting the behavior when locked, and an option for allowing volume control.
Diffstat (limited to 'src/tangara/ui/ui_fsm.cpp')
-rw-r--r--src/tangara/ui/ui_fsm.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tangara/ui/ui_fsm.cpp b/src/tangara/ui/ui_fsm.cpp
index 4a54d974..1823f780 100644
--- a/src/tangara/ui/ui_fsm.cpp
+++ b/src/tangara/ui/ui_fsm.cpp
@@ -667,6 +667,7 @@ void Lua::entry() {
"controls",
{
{"scheme", &sInput->mode()},
+ {"locked_scheme", &sInput->lockedMode()},
{"lock_switch", &sLockSwitch},
{"hooks", [&](lua_State* L) { return sInput->pushHooks(L); }},
});