You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
504 B
29 lines
504 B
/*
|
|
* Copyright 2024 jacqueline <me@jacqueline.id.au>
|
|
*
|
|
* SPDX-License-Identifier: GPL-3.0-only
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
#include "core/lv_obj.h"
|
|
|
|
#include "drivers/haptics.hpp"
|
|
#include "input/feedback_device.hpp"
|
|
|
|
namespace input {
|
|
|
|
class Haptics : public IFeedbackDevice {
|
|
public:
|
|
Haptics(drivers::Haptics& haptics_);
|
|
|
|
auto feedback(lv_group_t*, uint8_t event_type) -> void override;
|
|
|
|
private:
|
|
drivers::Haptics& haptics_;
|
|
lv_obj_t* last_selection_;
|
|
};
|
|
|
|
} // namespace input
|
|
|