mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
Cleanup
This commit is contained in:
parent
ce51cf6b33
commit
f88e6c75d5
27
retroarch.c
27
retroarch.c
@ -4829,15 +4829,15 @@ int runloop_iterate(unsigned *sleep_ms)
|
|||||||
/* Update binds for analog dpad modes. */
|
/* Update binds for analog dpad modes. */
|
||||||
for (i = 0; i < max_users; i++)
|
for (i = 0; i < max_users; i++)
|
||||||
{
|
{
|
||||||
struct retro_keybind *general_binds = input_config_binds[i];
|
|
||||||
struct retro_keybind *auto_binds = input_autoconf_binds[i];
|
|
||||||
enum analog_dpad_mode dpad_mode = (enum analog_dpad_mode)settings->uints.input_analog_dpad_mode[i];
|
enum analog_dpad_mode dpad_mode = (enum analog_dpad_mode)settings->uints.input_analog_dpad_mode[i];
|
||||||
|
|
||||||
if (dpad_mode == ANALOG_DPAD_NONE)
|
if (dpad_mode != ANALOG_DPAD_NONE)
|
||||||
continue;
|
{
|
||||||
|
struct retro_keybind *general_binds = input_config_binds[i];
|
||||||
input_push_analog_dpad(general_binds, dpad_mode);
|
struct retro_keybind *auto_binds = input_autoconf_binds[i];
|
||||||
input_push_analog_dpad(auto_binds, dpad_mode);
|
input_push_analog_dpad(general_binds, dpad_mode);
|
||||||
|
input_push_analog_dpad(auto_binds, dpad_mode);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((video_frame_delay > 0) && !input_nonblock_state)
|
if ((video_frame_delay > 0) && !input_nonblock_state)
|
||||||
@ -4884,15 +4884,16 @@ int runloop_iterate(unsigned *sleep_ms)
|
|||||||
|
|
||||||
for (i = 0; i < max_users; i++)
|
for (i = 0; i < max_users; i++)
|
||||||
{
|
{
|
||||||
struct retro_keybind *general_binds = input_config_binds[i];
|
|
||||||
struct retro_keybind *auto_binds = input_autoconf_binds[i];
|
|
||||||
enum analog_dpad_mode dpad_mode = (enum analog_dpad_mode)settings->uints.input_analog_dpad_mode[i];
|
enum analog_dpad_mode dpad_mode = (enum analog_dpad_mode)settings->uints.input_analog_dpad_mode[i];
|
||||||
|
|
||||||
if (dpad_mode == ANALOG_DPAD_NONE)
|
if (dpad_mode != ANALOG_DPAD_NONE)
|
||||||
continue;
|
{
|
||||||
|
struct retro_keybind *general_binds = input_config_binds[i];
|
||||||
|
struct retro_keybind *auto_binds = input_autoconf_binds[i];
|
||||||
|
|
||||||
input_pop_analog_dpad(general_binds);
|
input_pop_analog_dpad(general_binds);
|
||||||
input_pop_analog_dpad(auto_binds);
|
input_pop_analog_dpad(auto_binds);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bsv_movie_state_handle)
|
if (bsv_movie_state_handle)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user