summaryrefslogtreecommitdiff
path: root/src/input/feedback_haptics.cpp
diff options
context:
space:
mode:
authorailurux <ailuruxx@gmail.com>2024-05-10 13:06:20 +1000
committerailurux <ailuruxx@gmail.com>2024-05-10 13:06:20 +1000
commit3f177cdb8880abf199f4445f1398cd69fb813892 (patch)
treee20de4949b1344c826e5af41ab701f3db75b21bc /src/input/feedback_haptics.cpp
parent8019c7691889cde4c3d40bbd78d485a92d713bbf (diff)
parente4ce7c4ac23402e09be8d6a52e0f739c0dff4ff0 (diff)
downloadtangara-fw-3f177cdb8880abf199f4445f1398cd69fb813892.tar.gz
Merge branch 'main' into file-browser
Diffstat (limited to 'src/input/feedback_haptics.cpp')
-rw-r--r--src/input/feedback_haptics.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/input/feedback_haptics.cpp b/src/input/feedback_haptics.cpp
deleted file mode 100644
index 5e83d0d6..00000000
--- a/src/input/feedback_haptics.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright 2024 jacqueline <me@jacqueline.id.au>
- *
- * SPDX-License-Identifier: GPL-3.0-only
- */
-
-#include "feedback_haptics.hpp"
-
-#include <cstdint>
-
-#include "lvgl/lvgl.h"
-
-#include "core/lv_event.h"
-#include "esp_log.h"
-
-#include "haptics.hpp"
-
-namespace input {
-
-using Effect = drivers::Haptics::Effect;
-
-Haptics::Haptics(drivers::Haptics& haptics_) : haptics_(haptics_) {}
-
-auto Haptics::feedback(uint8_t event_type) -> void {
- switch (event_type) {
- case LV_EVENT_FOCUSED:
- haptics_.PlayWaveformEffect(Effect::kMediumClick1_100Pct);
- break;
- case LV_EVENT_CLICKED:
- haptics_.PlayWaveformEffect(Effect::kSharpClick_100Pct);
- break;
- default:
- break;
- }
-}
-
-} // namespace input