mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Fix warnings
This commit is contained in:
parent
91e572d7ef
commit
22b86226f8
@ -563,14 +563,14 @@ static INLINE bool input_menu_keys_pressed_internal(unsigned i,
|
||||
return false;
|
||||
}
|
||||
|
||||
#define input_keys_pressed_checks() \
|
||||
#define input_keys_pressed_checks(binds) \
|
||||
input_driver_block_libretro_input = false; \
|
||||
input_driver_block_hotkey = false; \
|
||||
if (current_input->keyboard_mapping_is_blocked && current_input->keyboard_mapping_is_blocked(current_input_data)) \
|
||||
input_driver_block_hotkey = true; \
|
||||
if (check_input_driver_block_hotkey(binds_norm, binds_auto)) \
|
||||
{ \
|
||||
if (current_input->input_state(current_input_data, &binds[0], 0, RETRO_DEVICE_JOYPAD, 0, RARCH_ENABLE_HOTKEY)) \
|
||||
if (current_input->input_state(current_input_data, binds, 0, RETRO_DEVICE_JOYPAD, 0, RARCH_ENABLE_HOTKEY)) \
|
||||
input_driver_block_libretro_input = true; \
|
||||
else \
|
||||
input_driver_block_hotkey = true; \
|
||||
@ -616,7 +616,7 @@ uint64_t input_menu_keys_pressed(
|
||||
input_push_analog_dpad(auto_binds, ANALOG_DPAD_LSTICK);
|
||||
}
|
||||
|
||||
input_keys_pressed_checks();
|
||||
input_keys_pressed_checks(&binds[0]);
|
||||
|
||||
for (i = 0; i < RARCH_BIND_LIST_END; i++)
|
||||
{
|
||||
@ -778,7 +778,7 @@ uint64_t input_keys_pressed(
|
||||
const struct retro_keybind *focus_binds_auto = &settings->input.autoconf_binds[0][RARCH_GAME_FOCUS_TOGGLE];
|
||||
const struct retro_keybind *focus_normal = &binds[RARCH_GAME_FOCUS_TOGGLE];
|
||||
|
||||
input_keys_pressed_checks();
|
||||
input_keys_pressed_checks(&binds);
|
||||
|
||||
/* Allows rarch_focus_toggle hotkey to still work even though every hotkey is blocked */
|
||||
if (check_input_driver_block_hotkey(focus_normal, focus_binds_auto))
|
||||
|
Loading…
x
Reference in New Issue
Block a user