diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-04-29 12:42:16 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-04-29 12:42:16 +1000 |
| commit | b255ea799eead9668e7fd69a286349ac4a74a73c (patch) | |
| tree | 747e8038de0ff048ab253ac1d6f481df601e8449 /src/input/include/input_device.hpp | |
| parent | 920345b940bb3993c389d9e9be1a75a8041d431d (diff) | |
| download | tangara-fw-b255ea799eead9668e7fd69a286349ac4a74a73c.tar.gz | |
Add lua bindings for override input hooks
Diffstat (limited to 'src/input/include/input_device.hpp')
| -rw-r--r-- | src/input/include/input_device.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/input/include/input_device.hpp b/src/input/include/input_device.hpp index 59456351..d944c3bf 100644 --- a/src/input/include/input_device.hpp +++ b/src/input/include/input_device.hpp @@ -29,7 +29,9 @@ class IInputDevice { virtual auto read(lv_indev_data_t* data) -> void = 0; virtual auto name() -> std::string = 0; - virtual auto hooks() -> std::vector<TriggerHooks> { return {}; } + virtual auto triggers() -> std::vector<std::reference_wrapper<TriggerHooks>> { + return {}; + } }; } // namespace input |
