diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-04-15 14:18:20 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-04-15 14:18:20 +1000 |
| commit | 1baaa6dadcea5b8a85f1629e31119f4edba91b75 (patch) | |
| tree | feae0c19f1a6744b60f3e59a5d9b8df1c28c6ebf /src/input/include/input_touch_wheel.hpp | |
| parent | c24dfa6846929e8a7659c4aa2633b82494ac7fe1 (diff) | |
| download | tangara-fw-1baaa6dadcea5b8a85f1629e31119f4edba91b75.tar.gz | |
Use more generic 'hooks' for each input device's actions
Diffstat (limited to 'src/input/include/input_touch_wheel.hpp')
| -rw-r--r-- | src/input/include/input_touch_wheel.hpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/input/include/input_touch_wheel.hpp b/src/input/include/input_touch_wheel.hpp index c81cbb1a..88ebee40 100644 --- a/src/input/include/input_touch_wheel.hpp +++ b/src/input/include/input_touch_wheel.hpp @@ -13,6 +13,7 @@ #include "haptics.hpp" #include "input_device.hpp" +#include "input_hook.hpp" #include "input_trigger.hpp" #include "nvs.hpp" #include "property.hpp" @@ -37,10 +38,11 @@ class TouchWheel : public IInputDevice { lua::Property sensitivity_; - Trigger up_; - Trigger right_; - Trigger down_; - Trigger left_; + TriggerHooks centre_; + TriggerHooks up_; + TriggerHooks right_; + TriggerHooks down_; + TriggerHooks left_; bool is_scrolling_; uint8_t threshold_; |
