Simplify input_keys_pressed

This commit is contained in:
twinaphex 2021-04-10 18:25:50 +02:00
parent 5df321fcaa
commit 372f939cc9

View File

@ -24618,21 +24618,12 @@ static void input_keys_pressed(
}
}
{
int16_t ret = 0;
/* Check the libretro input first */
if (p_rarch->input_driver_block_libretro_input)
{
for (i = 0; i < RARCH_FIRST_META_KEY; i++)
{
if (input_keys_pressed_other_sources(p_rarch,
i, p_new_state))
{
BIT256_SET_PTR(p_new_state, i);
}
}
}
else
{
int16_t ret = input_state_wrap(
if (!p_rarch->input_driver_block_libretro_input)
ret = input_state_wrap(
p_rarch->current_input,
p_rarch->current_input_data,
p_rarch->joypad,