diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-08-07 12:09:23 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-08-07 12:09:23 +1000 |
| commit | 1ff28233bd6a64fab97c56861477e122e4c3eac6 (patch) | |
| tree | b5265a93a0e55043f16cefedbb8f9e43e9d18ff7 /src/tangara/input/input_device.hpp | |
| parent | 649cb74f036c392264264d35f98bef1fa4a5a8aa (diff) | |
| download | tangara-fw-1ff28233bd6a64fab97c56861477e122e4c3eac6.tar.gz | |
Recalibrate the touchwheel after unlocking
Also power it down whilst we're locked. This saves about half a
milliamp.
Diffstat (limited to 'src/tangara/input/input_device.hpp')
| -rw-r--r-- | src/tangara/input/input_device.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tangara/input/input_device.hpp b/src/tangara/input/input_device.hpp index da2b31cd..7edded3e 100644 --- a/src/tangara/input/input_device.hpp +++ b/src/tangara/input/input_device.hpp @@ -32,6 +32,11 @@ class IInputDevice { virtual auto triggers() -> std::vector<std::reference_wrapper<TriggerHooks>> { return {}; } + + /* Called by the LVGL driver when controls are being locked. */ + virtual auto onLock() -> void {} + /* Called by the LVGL driver when controls are being unlocked. */ + virtual auto onUnlock() -> void {} }; } // namespace input |
