diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-04-24 16:06:10 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-04-24 16:06:10 +1000 |
| commit | 920345b940bb3993c389d9e9be1a75a8041d431d (patch) | |
| tree | 562e53906a14c31ba8a21b3c2ae64c652a16acb4 /src/input/include/input_device.hpp | |
| parent | 531475e3511e9c722677d3a351b51d4a579876df (diff) | |
| download | tangara-fw-920345b940bb3993c389d9e9be1a75a8041d431d.tar.gz | |
Support getting a tree of controls + hooks via lua
Diffstat (limited to 'src/input/include/input_device.hpp')
| -rw-r--r-- | src/input/include/input_device.hpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/input/include/input_device.hpp b/src/input/include/input_device.hpp index 5fc3e066..59456351 100644 --- a/src/input/include/input_device.hpp +++ b/src/input/include/input_device.hpp @@ -11,6 +11,7 @@ #include <vector> #include "hal/lv_hal_indev.h" +#include "input_hook.hpp" #include "property.hpp" namespace input { @@ -27,13 +28,8 @@ class IInputDevice { virtual auto read(lv_indev_data_t* data) -> void = 0; - // TODO: Add hooks and configuration (or are hooks just one kind of - // configuration?) - - virtual auto settings() - -> std::vector<std::pair<std::string, lua::Property>> { - return {}; - } + virtual auto name() -> std::string = 0; + virtual auto hooks() -> std::vector<TriggerHooks> { return {}; } }; } // namespace input |
