Skip to content

Commit d6e3777

Browse files
committed
Restore menu toggle without hotkey
1 parent 8e56782 commit d6e3777

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

input/input_driver.c

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6226,15 +6226,14 @@ static void input_keys_pressed(
62266226
}
62276227
}
62286228

6229-
/* Read autoconf menu toggle regardless of 'enable_hotkey'
6230-
* unless 'enable_hotkey' is set in autoconf. */
6229+
/* Allow menu toggle to bypass 'enable_hotkey' when it is
6230+
* not part of the usual buttons, unless 'enable_hotkey'
6231+
* is set in autoconf. */
62316232
if ( !any_pressed
62326233
&& !(input_st->flags & INP_FLAG_WAIT_INPUT_RELEASE)
6233-
&& (input_autoconf_binds[joy_idx][RARCH_MENU_TOGGLE].joykey != NO_BTN)
6234-
&& ( input_autoconf_binds[joy_idx][RARCH_ENABLE_HOTKEY].joykey == input_autoconf_binds[joy_idx][RARCH_MENU_TOGGLE].joykey
6235-
|| input_autoconf_binds[joy_idx][RARCH_ENABLE_HOTKEY].joykey == NO_BTN)
6236-
&& ( binds[port][RARCH_MENU_TOGGLE].joykey == input_autoconf_binds[joy_idx][RARCH_MENU_TOGGLE].joykey
6237-
|| binds[port][RARCH_MENU_TOGGLE].joykey == NO_BTN))
6234+
&& (binds[port][RARCH_MENU_TOGGLE].joykey != NO_BTN)
6235+
&& ( input_autoconf_binds[joy_idx][RARCH_ENABLE_HOTKEY].joykey == binds[port][RARCH_MENU_TOGGLE].joykey
6236+
|| input_autoconf_binds[joy_idx][RARCH_ENABLE_HOTKEY].joykey == NO_BTN))
62386237
{
62396238
/* Ignore keyboard menu toggle button and check
62406239
* joypad menu toggle button for pressing

0 commit comments

Comments
 (0)