From c92b13d154d38598428dfbdae45097aac2597e90 Mon Sep 17 00:00:00 2001 From: Willy-JL Date: Sat, 21 Jan 2023 00:09:33 +0000 Subject: [PATCH] Desktop hold right for about page --- .../desktop/animations/views/bubble_animation_view.c | 5 +++++ .../desktop/animations/views/one_shot_animation_view.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/applications/services/desktop/animations/views/bubble_animation_view.c b/applications/services/desktop/animations/views/bubble_animation_view.c index 607862d11..65fafdcb7 100644 --- a/applications/services/desktop/animations/views/bubble_animation_view.c +++ b/applications/services/desktop/animations/views/bubble_animation_view.c @@ -12,6 +12,7 @@ #include #include #include +#include #define ACTIVE_SHIFT 2 @@ -133,6 +134,10 @@ static bool bubble_animation_input_callback(InputEvent* event, void* context) { if(animation_view->interact_callback) { animation_view->interact_callback(animation_view->interact_callback_context); } + } else if(event->type == InputTypeLong) { + Loader* loader = furi_record_open(RECORD_LOADER); + loader_start(loader, "About", NULL); + furi_record_close(RECORD_LOADER); } } diff --git a/applications/services/desktop/animations/views/one_shot_animation_view.c b/applications/services/desktop/animations/views/one_shot_animation_view.c index 9a4dff06c..dd8b997a2 100644 --- a/applications/services/desktop/animations/views/one_shot_animation_view.c +++ b/applications/services/desktop/animations/views/one_shot_animation_view.c @@ -6,6 +6,7 @@ #include #include #include +#include typedef void (*OneShotInteractCallback)(void*); @@ -70,6 +71,10 @@ static bool one_shot_view_input(InputEvent* event, void* context) { if(view->interact_callback) { view->interact_callback(view->interact_callback_context); } + } else if(event->type == InputTypeLong) { + Loader* loader = furi_record_open(RECORD_LOADER); + loader_start(loader, "About", NULL); + furi_record_close(RECORD_LOADER); } } }