diff options
| author | Tess Eisenberger <github@teisen.be> | 2025-02-01 15:59:08 -0800 |
|---|---|---|
| committer | teisenbe <teisenbe@noreply.codeberg.org> | 2025-02-02 04:48:42 +0000 |
| commit | e8eaf3df10a896cb28e91cfc416b19303926a00a (patch) | |
| tree | 15d20a1108d230285ae37a260f6920ac6c6cb8bf /src/tangara/input/input_device.hpp | |
| parent | b98e67972bca390961ecd2240ab3d3553ea0bf86 (diff) | |
| download | tangara-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/input_device.hpp')
| -rw-r--r-- | src/tangara/input/input_device.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tangara/input/input_device.hpp b/src/tangara/input/input_device.hpp index 7edded3e..424c0da3 100644 --- a/src/tangara/input/input_device.hpp +++ b/src/tangara/input/input_device.hpp @@ -10,6 +10,7 @@ #include <string> #include <vector> +#include "drivers/nvs.hpp" #include "indev/lv_indev.h" #include "input/input_hook.hpp" #include "lua/property.hpp" @@ -34,7 +35,7 @@ class IInputDevice { } /* Called by the LVGL driver when controls are being locked. */ - virtual auto onLock() -> void {} + virtual auto onLock(drivers::NvsStorage::LockedInputModes) -> void {} /* Called by the LVGL driver when controls are being unlocked. */ virtual auto onUnlock() -> void {} }; |
