mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Simplify input_keys_pressed
This commit is contained in:
parent
5df321fcaa
commit
372f939cc9
35
retroarch.c
35
retroarch.c
@ -24618,29 +24618,20 @@ static void input_keys_pressed(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check the libretro input first */
|
|
||||||
if (p_rarch->input_driver_block_libretro_input)
|
|
||||||
{
|
{
|
||||||
for (i = 0; i < RARCH_FIRST_META_KEY; i++)
|
int16_t ret = 0;
|
||||||
{
|
|
||||||
if (input_keys_pressed_other_sources(p_rarch,
|
/* Check the libretro input first */
|
||||||
i, p_new_state))
|
if (!p_rarch->input_driver_block_libretro_input)
|
||||||
{
|
ret = input_state_wrap(
|
||||||
BIT256_SET_PTR(p_new_state, i);
|
p_rarch->current_input,
|
||||||
}
|
p_rarch->current_input_data,
|
||||||
}
|
p_rarch->joypad,
|
||||||
}
|
sec_joypad,
|
||||||
else
|
joypad_info, &binds[port],
|
||||||
{
|
p_rarch->keyboard_mapping_blocked,
|
||||||
int16_t ret = input_state_wrap(
|
port, RETRO_DEVICE_JOYPAD, 0,
|
||||||
p_rarch->current_input,
|
RETRO_DEVICE_ID_JOYPAD_MASK);
|
||||||
p_rarch->current_input_data,
|
|
||||||
p_rarch->joypad,
|
|
||||||
sec_joypad,
|
|
||||||
joypad_info, &binds[port],
|
|
||||||
p_rarch->keyboard_mapping_blocked,
|
|
||||||
port, RETRO_DEVICE_JOYPAD, 0,
|
|
||||||
RETRO_DEVICE_ID_JOYPAD_MASK);
|
|
||||||
|
|
||||||
for (i = 0; i < RARCH_FIRST_META_KEY; i++)
|
for (i = 0; i < RARCH_FIRST_META_KEY; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user