Skip to content

Commit

Permalink
Ignore menu event action in the end of function instead (#15811)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonninnos authored Oct 16, 2023
1 parent e3becab commit f69a292
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions menu/menu_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -5239,11 +5239,6 @@ unsigned menu_event(

ok_old = ok_current;

/* Menu must be alive, and input must be released after menu toggle. */
if ( !(menu_st->flags & MENU_ST_FLAG_ALIVE)
|| menu_st->input_driver_flushing_input > 0)
return ret;

/* Get pointer (mouse + touchscreen) input
* Note: Must be done regardless of menu screensaver
* state */
Expand Down Expand Up @@ -5633,6 +5628,11 @@ unsigned menu_event(
menu_st->input_last_time_us = menu_st->current_time_us;
}

/* Menu must be alive, and input must be released after menu toggle. */
if ( !(menu_st->flags & MENU_ST_FLAG_ALIVE)
|| menu_st->input_driver_flushing_input > 0)
return MENU_ACTION_NOOP;

return ret;
}

Expand Down

0 comments on commit f69a292

Please sign in to comment.