Check for 'enable_hotkey' also from autoconf binds (#15095)

This commit is contained in:
sonninnos 2023-03-14 19:16:53 +02:00 committed by GitHub
parent a0c7f11499
commit 92dfc80327
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4056,8 +4056,10 @@ static void input_keys_pressed(
input_driver_state_t *input_st = &input_driver_st;
bool block_hotkey[RARCH_BIND_LIST_END];
bool libretro_hotkey_set =
binds[port][RARCH_ENABLE_HOTKEY].joykey != NO_BTN
|| binds[port][RARCH_ENABLE_HOTKEY].joyaxis != AXIS_NONE;
binds[port][RARCH_ENABLE_HOTKEY].joykey != NO_BTN
|| binds[port][RARCH_ENABLE_HOTKEY].joyaxis != AXIS_NONE
|| input_autoconf_binds[port][RARCH_ENABLE_HOTKEY].joykey != NO_BTN
|| input_autoconf_binds[port][RARCH_ENABLE_HOTKEY].joyaxis != AXIS_NONE;
bool keyboard_hotkey_set =
binds[port][RARCH_ENABLE_HOTKEY].key != RETROK_UNKNOWN;