Skip to content

Commit 05ce35b

Browse files
authored
Don't process menu events while input is being flushed (#15742)
1 parent 9a57ec2 commit 05ce35b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

menu/menu_driver.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5239,8 +5239,9 @@ unsigned menu_event(
52395239

52405240
ok_old = ok_current;
52415241

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

52465247
/* Get pointer (mouse + touchscreen) input

0 commit comments

Comments
 (0)