From 11ca381a2bc892fa5aa04a0e25b6fbae4e6d2cb2 Mon Sep 17 00:00:00 2001 From: VerstreuteSeele Date: Fri, 23 Dec 2022 19:47:35 +0100 Subject: [PATCH] Bozo moment --- .../services/desktop/views/desktop_view_main.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/applications/services/desktop/views/desktop_view_main.c b/applications/services/desktop/views/desktop_view_main.c index c0d11eb8f..d203e9d9b 100644 --- a/applications/services/desktop/views/desktop_view_main.c +++ b/applications/services/desktop/views/desktop_view_main.c @@ -61,13 +61,18 @@ bool desktop_main_input_callback(InputEvent* event, void* context) { main_view->callback(DesktopMainEventOpenFavoritePrimary, main_view->context); } // Right key is handled by animation manager - } else if(event->type == InputTypeLong) { - if(event->key == InputKeyDown) { - main_view->callback(DesktopMainEventOpenDebug, main_view->context); - } else if(event->key == InputKeyLeft) { - main_view->callback(DesktopMainEventOpenFavoriteSecondary, main_view->context); + } else if(event->type == InputTypeLong) { + if(event->key == InputKeyOk) { + main_view->callback(DesktopAnimationEventNewIdleAnimation, main_view->context); + } else if(event->key == InputKeyUp) { + main_view->callback(DesktopMainEventOpenFavoriteSecondary, main_view->context); + } else if(event->key == InputKeyDown) { + main_view->callback(DesktopMainEventOpenFavoritePrimary, main_view->context); + } else if(event->key == InputKeyLeft) { + main_view->callback( + DesktopMainEventOpenSubRemote, main_view->context); // OPENS SUBGHZ REMOTE + } } - } if(event->key == InputKeyBack) { if(event->type == InputTypePress) {