Merge branch 'develop' into cpak-management

This commit is contained in:
Robin Jones 2024-07-09 12:47:18 +01:00 committed by GitHub
commit b1ea3f33fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -21,6 +21,8 @@ static void actions_clear (menu_t *menu) {
menu->actions.back = false;
menu->actions.options = false;
menu->actions.settings = false;
menu->actions.l_context = false;
menu->actions.z_context = false;
}
static void actions_update_direction (menu_t *menu) {
@ -91,6 +93,10 @@ static void actions_update_buttons (menu_t *menu) {
menu->actions.options = true;
} else if (pressed.start) {
menu->actions.settings = true;
} else if (pressed.l) {
menu->actions.l_context = true;
} else if (pressed.z) {
menu->actions.z_context = true;
}
}

View File

@ -86,6 +86,8 @@ typedef struct {
bool back;
bool options;
bool settings;
bool l_context;
bool z_context;
} actions;
struct {