Don't process menu events while input is being flushed (#15742)

This commit is contained in:
sonninnos 2023-09-27 15:52:30 +03:00 committed by GitHub
parent 9a57ec29d5
commit 05ce35b103
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5239,8 +5239,9 @@ unsigned menu_event(
ok_old = ok_current;
/* Menu must be alive */
if (!(menu_st->flags & MENU_ST_FLAG_ALIVE))
/* 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