Skip to content

Commit

Permalink
Updated desktop_view_main.c with long OK press
Browse files Browse the repository at this point in the history
Now you can change the animation with just pressing OK button long
  • Loading branch information
ut1s authored Sep 12, 2022
1 parent 36a80a0 commit 8f0b139
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions applications/desktop/views/desktop_view_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ bool desktop_main_input(InputEvent* event, void* context) {
} else if(event->type == InputTypeLong) {
if(event->key == InputKeyDown) {
main_view->callback(DesktopMainEventOpenDebug, main_view->context);
} else if(event->key == InputKeyOk) {
main_view->callback(DesktopMainEventOpenMenu, main_view->context);
} else if(event->key == InputKeyLeft) {
main_view->callback(DesktopMainEventOpenFavoriteSecondary, main_view->context);
}
Expand Down

0 comments on commit 8f0b139

Please sign in to comment.