Skip to content

Commit 3d007f9

Browse files
committed
Autoconf menu toggle fix
1 parent 098fe99 commit 3d007f9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

input/input_driver.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5735,7 +5735,12 @@ static void input_keys_pressed(
57355735
if ( bit_pressed
57365736
|| BIT64_GET(lifecycle_state, i)
57375737
|| input_keys_pressed_other_sources(input_st, i, p_new_state))
5738+
{
5739+
if (!(input_st->flags & INP_FLAG_MENU_PRESS_PENDING))
5740+
input_st->flags &= ~INP_FLAG_MENU_PRESS_CANCEL;
5741+
57385742
input_st->flags |= INP_FLAG_MENU_PRESS_PENDING;
5743+
}
57395744
else if (input_st->flags & INP_FLAG_MENU_PRESS_PENDING)
57405745
/* Also set 'enable_hotkey' to prevent hotkey delay untrigger */
57415746
BIT256_SET_PTR(p_new_state, RARCH_ENABLE_HOTKEY);

0 commit comments

Comments
 (0)