mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
input_keys_pressed - get rid of unnecessary for loop
This commit is contained in:
parent
4a56ed618a
commit
5eb5195169
@ -557,9 +557,6 @@ retro_input_t input_keys_pressed(void)
|
||||
ret.type = 0;
|
||||
ret.state = 0;
|
||||
|
||||
for (i = 0; i < MAX_USERS; i++)
|
||||
binds[i] = settings->input.binds[i];
|
||||
|
||||
if (!current_input || !current_input_data)
|
||||
return ret;
|
||||
|
||||
@ -575,6 +572,8 @@ retro_input_t input_keys_pressed(void)
|
||||
|
||||
for (i = 0; i < settings->input.max_users; i++)
|
||||
{
|
||||
binds[i] = settings->input.binds[i];
|
||||
|
||||
input_push_analog_dpad(settings->input.binds[i],
|
||||
settings->input.analog_dpad_mode[i]);
|
||||
input_push_analog_dpad(settings->input.autoconf_binds[i],
|
||||
|
Loading…
x
Reference in New Issue
Block a user