diff options
Diffstat (limited to 'src/ui/ui_fsm.cpp')
| -rw-r--r-- | src/ui/ui_fsm.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/ui/ui_fsm.cpp b/src/ui/ui_fsm.cpp index ceeb194d..1cbf1be4 100644 --- a/src/ui/ui_fsm.cpp +++ b/src/ui/ui_fsm.cpp @@ -14,6 +14,7 @@ #include "db_events.hpp" #include "device_factory.hpp" #include "display_init.hpp" +#include "esp_spp_api.h" #include "feedback_haptics.hpp" #include "freertos/portmacro.h" #include "freertos/projdefs.h" @@ -497,10 +498,13 @@ void Lua::entry() { {"brightness", &sDisplayBrightness}, }); - registry.AddPropertyModule("controls", { - {"scheme", &sInput->mode()}, - {"lock_switch", &sLockSwitch}, - }); + registry.AddPropertyModule( + "controls", + { + {"scheme", &sInput->mode()}, + {"lock_switch", &sLockSwitch}, + {"hooks", [&](lua_State* L) { return sInput->pushHooks(L); }}, + }); if (sDeviceFactory->touch_wheel()) { registry.AddPropertyModule( |
