mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Fix keyboard issues with OSK
This commit is contained in:
parent
4bc04f7b28
commit
4f4af01349
@ -554,14 +554,18 @@ static INLINE bool input_menu_keys_pressed_internal(
|
|||||||
|
|
||||||
for (port = 0; port < port_max; port++)
|
for (port = 0; port < port_max; port++)
|
||||||
{
|
{
|
||||||
bool bind_valid = binds[port][i].valid;
|
const input_device_driver_t *first = current_input->get_joypad_driver
|
||||||
|
? current_input->get_joypad_driver(current_input_data) : NULL;
|
||||||
|
const input_device_driver_t *sec = current_input->get_sec_joypad_driver
|
||||||
|
? current_input->get_sec_joypad_driver(current_input_data) : NULL;
|
||||||
|
|
||||||
joypad_info.joy_idx = port;
|
joypad_info.joy_idx = port;
|
||||||
joypad_info.auto_binds = settings->input.autoconf_binds[port];
|
joypad_info.auto_binds = settings->input.autoconf_binds[port];
|
||||||
|
joypad_info.axis_threshold = settings->input.axis_threshold;
|
||||||
|
|
||||||
if (bind_valid && current_input->input_state(current_input_data, joypad_info,
|
if (sec && input_joypad_pressed(sec, joypad_info, port, settings->input.binds[0], i))
|
||||||
binds,
|
return true;
|
||||||
port, RETRO_DEVICE_JOYPAD, 0, i))
|
if (first && input_joypad_pressed(first, joypad_info, port, settings->input.binds[0], i))
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user