mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 14:42:30 +00:00
Simplify input_keys_pressed
This commit is contained in:
parent
5df321fcaa
commit
372f939cc9
19
retroarch.c
19
retroarch.c
@ -24618,21 +24618,12 @@ static void input_keys_pressed(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
int16_t ret = 0;
|
||||||
|
|
||||||
/* Check the libretro input first */
|
/* Check the libretro input first */
|
||||||
if (p_rarch->input_driver_block_libretro_input)
|
if (!p_rarch->input_driver_block_libretro_input)
|
||||||
{
|
ret = input_state_wrap(
|
||||||
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(
|
|
||||||
p_rarch->current_input,
|
p_rarch->current_input,
|
||||||
p_rarch->current_input_data,
|
p_rarch->current_input_data,
|
||||||
p_rarch->joypad,
|
p_rarch->joypad,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user