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_dpad.hpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/input/include/input_touch_dpad.hpp') diff --git a/src/input/include/input_touch_dpad.hpp b/src/input/include/input_touch_dpad.hpp index 03936acb..f80400dc 100644 --- a/src/input/include/input_touch_dpad.hpp +++ b/src/input/include/input_touch_dpad.hpp @@ -6,13 +6,13 @@ #pragma once -#include #include #include "hal/lv_hal_indev.h" #include "haptics.hpp" #include "input_device.hpp" +#include "input_hook.hpp" #include "input_trigger.hpp" #include "touchwheel.hpp" @@ -27,10 +27,11 @@ class TouchDPad : public IInputDevice { private: drivers::TouchWheel& wheel_; - Trigger up_; - Trigger right_; - Trigger down_; - Trigger left_; + TriggerHooks centre_; + TriggerHooks up_; + TriggerHooks right_; + TriggerHooks down_; + TriggerHooks left_; }; } // namespace input -- cgit v1.2.3