From 920345b940bb3993c389d9e9be1a75a8041d431d Mon Sep 17 00:00:00 2001 From: jacqueline Date: Wed, 24 Apr 2024 16:06:10 +1000 Subject: Support getting a tree of controls + hooks via lua --- src/input/include/input_device.hpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/input/include/input_device.hpp') 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 #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> { - return {}; - } + virtual auto name() -> std::string = 0; + virtual auto hooks() -> std::vector { return {}; } }; } // namespace input -- cgit v1.2.3