mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 07:13:35 +00:00
(input_driver.c) Cleanups
This commit is contained in:
parent
d2bd6677bd
commit
15c63c3de9
@ -499,6 +499,7 @@ static INLINE bool input_menu_keys_pressed_internal(unsigned i)
|
||||
{
|
||||
int port;
|
||||
int port_max = 1;
|
||||
|
||||
if (settings->input.all_users_control_menu)
|
||||
port_max = settings->input.max_users;
|
||||
|
||||
@ -509,18 +510,12 @@ static INLINE bool input_menu_keys_pressed_internal(unsigned i)
|
||||
const input_device_driver_t *sec = current_input->get_sec_joypad_driver
|
||||
? current_input->get_sec_joypad_driver(current_input_data) : NULL;
|
||||
|
||||
if (sec)
|
||||
{
|
||||
if (input_joypad_pressed(sec, port, settings->input.binds[0], i))
|
||||
if (sec && input_joypad_pressed(sec, port, settings->input.binds[0], i))
|
||||
return true;
|
||||
}
|
||||
if (first)
|
||||
{
|
||||
if (input_joypad_pressed(first, port, settings->input.binds[0], i))
|
||||
if (first && input_joypad_pressed(first, port, settings->input.binds[0], i))
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (i >= RARCH_FIRST_META_KEY)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user