mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Cleanup - input_key_pressed
This commit is contained in:
parent
69f85556a3
commit
422ce9396c
@ -1078,6 +1078,8 @@ void input_keys_pressed(void *data, retro_bits_t* p_new_state)
|
||||
|
||||
for (i = 0; i < RARCH_BIND_LIST_END; i++)
|
||||
{
|
||||
bool bit_pressed = false;
|
||||
|
||||
if (
|
||||
((!input_driver_block_libretro_input && ((i < RARCH_FIRST_META_KEY)))
|
||||
|| !input_driver_block_hotkey) &&
|
||||
@ -1085,19 +1087,15 @@ void input_keys_pressed(void *data, retro_bits_t* p_new_state)
|
||||
joypad_info, &binds,
|
||||
0, RETRO_DEVICE_JOYPAD, 0, i)
|
||||
)
|
||||
{
|
||||
BIT256_SET_PTR(p_new_state, i);
|
||||
return;
|
||||
}
|
||||
bit_pressed = true;
|
||||
|
||||
if (input_keys_pressed_iterate(i, p_new_state))
|
||||
if (bit_pressed || input_keys_pressed_iterate(i, p_new_state))
|
||||
{
|
||||
BIT256_SET_PTR(p_new_state, i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void *input_driver_get_data(void)
|
||||
{
|
||||
return current_input_data;
|
||||
|
Loading…
x
Reference in New Issue
Block a user