GUI: add back to dialog module results. Power: exit from reboot view. (#477)

Co-authored-by: SG <who.just.the.doctor@gmail.com>
This commit is contained in:
あく
2021-05-21 12:33:30 +03:00
committed by GitHub
parent 93fbb2e182
commit f1198950e9
3 changed files with 8 additions and 2 deletions

View File

@@ -50,6 +50,9 @@ static bool dialog_view_input_callback(InputEvent* event, void* context) {
} else if(event->key == InputKeyRight) {
dialog->callback(DialogResultRight, dialog->context);
consumed = true;
} else if(event->key == InputKeyBack) {
dialog->callback(DialogResultBack, dialog->context);
consumed = true;
}
}

View File

@@ -12,6 +12,7 @@ typedef struct Dialog Dialog;
typedef enum {
DialogResultLeft,
DialogResultRight,
DialogResultBack,
} DialogResult;
/* Dialog result callback type