mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 03:40:24 +00:00
(Android) Buildfix
This commit is contained in:
parent
cfbc3d4317
commit
58e7355942
@ -516,8 +516,7 @@ static bool menu_input_key_bind_poll_find_hold_pad(
|
||||
|
||||
bool menu_input_key_bind_poll_find_hold(
|
||||
struct menu_bind_state *new_state,
|
||||
struct retro_keybind * output
|
||||
)
|
||||
struct retro_keybind * output)
|
||||
{
|
||||
unsigned i;
|
||||
unsigned max_users = *(input_driver_get_uint(INPUT_ACTION_MAX_USERS));
|
||||
@ -539,8 +538,7 @@ bool menu_input_key_bind_poll_find_hold(
|
||||
static bool menu_input_key_bind_poll_find_trigger(
|
||||
struct menu_bind_state *state,
|
||||
struct menu_bind_state *new_state,
|
||||
struct retro_keybind * output
|
||||
)
|
||||
struct retro_keybind * output)
|
||||
{
|
||||
unsigned i;
|
||||
unsigned max_users = *(input_driver_get_uint(INPUT_ACTION_MAX_USERS));
|
||||
@ -640,7 +638,7 @@ bool menu_input_key_bind_iterate(menu_input_ctx_bind_t *bind,
|
||||
if (menu_input_key_bind_poll_find_hold(&binds, &binds.buffer))
|
||||
{
|
||||
/*inhibit timeout*/
|
||||
rarch_timer_begin_new_time_us( &binds.timer_timeout, input_bind_timeout);
|
||||
rarch_timer_begin_new_time_us(&binds.timer_timeout, input_bind_timeout_us);
|
||||
|
||||
/*run hold timer*/
|
||||
rarch_timer_tick(&binds.timer_hold, current_time);
|
||||
@ -659,9 +657,7 @@ bool menu_input_key_bind_iterate(menu_input_ctx_bind_t *bind,
|
||||
/*reset hold countdown*/
|
||||
rarch_timer_begin_new_time_us(&binds.timer_hold, input_bind_hold_us);
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
if ((binds.skip && !menu_input_binds.skip) ||
|
||||
menu_input_key_bind_poll_find_trigger(&menu_input_binds, &binds, &(binds.buffer)))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user