From 1baaa6dadcea5b8a85f1629e31119f4edba91b75 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Mon, 15 Apr 2024 14:18:20 +1000 Subject: Use more generic 'hooks' for each input device's actions --- src/input/include/input_touch_wheel.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/input/include/input_touch_wheel.hpp') 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_; -- cgit v1.2.3