mirror of
https://github.com/libretro/RetroArch
synced 2025-03-31 10:20:41 +00:00
Update
This commit is contained in:
parent
dbb2cbb959
commit
d0f57cdd6f
@ -469,6 +469,28 @@ static bool menu_input_key_bind_poll_find_trigger(
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef ANDROID
|
||||||
|
static bool menu_input_key_bind_poll_find_hold(
|
||||||
|
struct menu_bind_state *new_state,
|
||||||
|
struct retro_keybind * output)
|
||||||
|
{
|
||||||
|
unsigned i;
|
||||||
|
unsigned max_users = *(input_driver_get_uint(INPUT_ACTION_MAX_USERS));
|
||||||
|
|
||||||
|
if (!new_state)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
for (i = 0; i < max_users; i++)
|
||||||
|
{
|
||||||
|
if (!menu_input_key_bind_poll_find_hold_pad(new_state, output, i))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
bool menu_input_key_bind_set_mode(
|
bool menu_input_key_bind_set_mode(
|
||||||
enum menu_input_binds_ctl_state state, void *data)
|
enum menu_input_binds_ctl_state state, void *data)
|
||||||
@ -515,27 +537,6 @@ bool menu_input_key_bind_set_mode(
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool menu_input_key_bind_poll_find_hold(
|
|
||||||
struct menu_bind_state *new_state,
|
|
||||||
struct retro_keybind * output)
|
|
||||||
{
|
|
||||||
unsigned i;
|
|
||||||
unsigned max_users = *(input_driver_get_uint(INPUT_ACTION_MAX_USERS));
|
|
||||||
|
|
||||||
if (!new_state)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
for (i = 0; i < max_users; i++)
|
|
||||||
{
|
|
||||||
if (!menu_input_key_bind_poll_find_hold_pad(new_state, output, i))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool menu_input_key_bind_set_min_max(menu_input_ctx_bind_limits_t *lim)
|
bool menu_input_key_bind_set_min_max(menu_input_ctx_bind_limits_t *lim)
|
||||||
{
|
{
|
||||||
if (!lim)
|
if (!lim)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user