Desktop hold right for about page

This commit is contained in:
Willy-JL
2023-01-21 00:09:33 +00:00
parent c355374ee3
commit c92b13d154
2 changed files with 10 additions and 0 deletions

View File

@@ -12,6 +12,7 @@
#include <input/input.h> #include <input/input.h>
#include <stdint.h> #include <stdint.h>
#include <core/dangerous_defines.h> #include <core/dangerous_defines.h>
#include <loader/loader.h>
#define ACTIVE_SHIFT 2 #define ACTIVE_SHIFT 2
@@ -133,6 +134,10 @@ static bool bubble_animation_input_callback(InputEvent* event, void* context) {
if(animation_view->interact_callback) { if(animation_view->interact_callback) {
animation_view->interact_callback(animation_view->interact_callback_context); 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);
} }
} }

View File

@@ -6,6 +6,7 @@
#include <gui/view.h> #include <gui/view.h>
#include <gui/icon_i.h> #include <gui/icon_i.h>
#include <stdint.h> #include <stdint.h>
#include <loader/loader.h>
typedef void (*OneShotInteractCallback)(void*); typedef void (*OneShotInteractCallback)(void*);
@@ -70,6 +71,10 @@ static bool one_shot_view_input(InputEvent* event, void* context) {
if(view->interact_callback) { if(view->interact_callback) {
view->interact_callback(view->interact_callback_context); 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);
} }
} }
} }