summaryrefslogtreecommitdiff
path: root/src/tangara/input/lvgl_input_driver.hpp
diff options
context:
space:
mode:
authorTess Eisenberger <github@teisen.be>2025-02-01 15:59:08 -0800
committerteisenbe <teisenbe@noreply.codeberg.org>2025-02-02 04:48:42 +0000
commite8eaf3df10a896cb28e91cfc416b19303926a00a (patch)
tree15d20a1108d230285ae37a260f6920ac6c6cb8bf /src/tangara/input/lvgl_input_driver.hpp
parentb98e67972bca390961ecd2240ab3d3553ea0bf86 (diff)
downloadtangara-fw-e8eaf3df10a896cb28e91cfc416b19303926a00a.tar.gz
Add a new setting for input controls when locked
This is just the plumbing of the new setting. The input methods will come in subsequent patches.
Diffstat (limited to 'src/tangara/input/lvgl_input_driver.hpp')
-rw-r--r--src/tangara/input/lvgl_input_driver.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tangara/input/lvgl_input_driver.hpp b/src/tangara/input/lvgl_input_driver.hpp
index 9b62c24d..ce950621 100644
--- a/src/tangara/input/lvgl_input_driver.hpp
+++ b/src/tangara/input/lvgl_input_driver.hpp
@@ -36,6 +36,7 @@ class LvglInputDriver {
LvglInputDriver(drivers::NvsStorage& nvs, DeviceFactory&);
auto mode() -> lua::Property& { return mode_; }
+ auto lockedMode() -> lua::Property& { return locked_mode_; }
auto setGroup(lv_group_t*) -> void;
auto read(lv_indev_data_t* data) -> void;
@@ -49,6 +50,7 @@ class LvglInputDriver {
DeviceFactory& factory_;
lua::Property mode_;
+ lua::Property locked_mode_;
lv_indev_t* device_;
std::vector<std::shared_ptr<IInputDevice>> inputs_;