mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
input_menu_keys_pressed - second joypad driver should be
working now too
This commit is contained in:
parent
f2076e2c5b
commit
9eecd774d1
@ -710,8 +710,13 @@ uint64_t input_menu_keys_pressed(void)
|
|||||||
|
|
||||||
for (port = 0; port < port_max; port++)
|
for (port = 0; port < port_max; port++)
|
||||||
{
|
{
|
||||||
state = input_joypad_pressed(input_driver_get_joypad_driver(),
|
const input_device_driver_t *first = current_input->get_joypad_driver ? current_input->get_joypad_driver(current_input_data) : NULL;
|
||||||
port, settings->input.binds[0], 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)
|
||||||
|
state = input_joypad_pressed(sec, port, settings->input.binds[0], i);
|
||||||
|
if (first)
|
||||||
|
state = input_joypad_pressed(first, port, settings->input.binds[0], i);
|
||||||
if (state)
|
if (state)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user