From 2ff8eac022f397bb1aed28aca376fbe422fc8b3c Mon Sep 17 00:00:00 2001 From: jacqueline Date: Wed, 29 May 2024 14:45:49 +1000 Subject: Start on TTS support by logging the data that will become TTS lines Includes some misc cleanup of haptic double-triggering (or non-triggering), since those cases all end up being TTS event double-reporting, which to me crosses the threshold from "annoying" to "usability issue" --- src/tangara/input/feedback_haptics.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/tangara/input/feedback_haptics.hpp') diff --git a/src/tangara/input/feedback_haptics.hpp b/src/tangara/input/feedback_haptics.hpp index bde5f345..91d7ec3a 100644 --- a/src/tangara/input/feedback_haptics.hpp +++ b/src/tangara/input/feedback_haptics.hpp @@ -8,6 +8,8 @@ #include +#include "core/lv_obj.h" + #include "drivers/haptics.hpp" #include "input/feedback_device.hpp" @@ -17,10 +19,11 @@ class Haptics : public IFeedbackDevice { public: Haptics(drivers::Haptics& haptics_); - auto feedback(uint8_t event_type) -> void override; + auto feedback(lv_group_t*, uint8_t event_type) -> void override; private: drivers::Haptics& haptics_; + lv_obj_t* last_selection_; }; } // namespace input -- cgit v1.2.3