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/device_factory.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/tangara/input/device_factory.cpp') diff --git a/src/tangara/input/device_factory.cpp b/src/tangara/input/device_factory.cpp index 8e1c5155..09fd2fd2 100644 --- a/src/tangara/input/device_factory.cpp +++ b/src/tangara/input/device_factory.cpp @@ -9,6 +9,7 @@ #include #include "input/feedback_haptics.hpp" +#include "input/feedback_tts.hpp" #include "input/input_device.hpp" #include "input/input_nav_buttons.hpp" #include "input/input_touch_dpad.hpp" @@ -52,7 +53,10 @@ auto DeviceFactory::createInputs(drivers::NvsStorage::InputModes mode) auto DeviceFactory::createFeedbacks() -> std::vector> { - return {std::make_shared(services_->haptics())}; + return { + std::make_shared(services_->haptics()), + std::make_shared(services_->tts()), + }; } } // namespace input -- cgit v1.2.3