/* * Copyright 2024 jacqueline * * SPDX-License-Identifier: GPL-3.0-only */ #pragma once #include #include #include "hal/lv_hal_indev.h" #include "haptics.hpp" #include "input_device.hpp" #include "input_trigger.hpp" #include "touchwheel.hpp" namespace input { class TouchDPad : public IInputDevice { public: TouchDPad(drivers::TouchWheel&); auto read(lv_indev_data_t* data) -> void override; private: drivers::TouchWheel& wheel_; Trigger up_; Trigger right_; Trigger down_; Trigger left_; }; } // namespace input