static bool menu_input_key_bind_poll_find_trigger( struct menu_bind_state *state, struct menu_bind_state *new_state) { unsigned i; settings_t *settings = config_get_ptr(); if (!state || !new_state) return false; for (i = 0; i < settings->input.max_users; i++) { if (!menu_input_key_bind_poll_find_trigger_pad( state, new_state, i)) continue; /* Update the joypad mapping automatically. * More friendly that way. */ #if 0 settings->input.joypad_map[state->user] = i; #endif return true; } return false; }
static bool menu_input_key_bind_poll_find_trigger( struct menu_bind_state *state, struct menu_bind_state *new_state) { unsigned i; settings_t *settings = config_get_ptr(); if (!state || !new_state) return false; for (i = 0; i < settings->input.max_users; i++) { if (!menu_input_key_bind_poll_find_trigger_pad( state, new_state, i)) continue; return true; } return false; }
static bool menu_input_key_bind_poll_find_trigger( struct menu_bind_state *state, struct menu_bind_state *new_state) { unsigned i; unsigned max_users = *(input_driver_get_uint(INPUT_ACTION_MAX_USERS)); if (!state || !new_state) return false; for (i = 0; i < max_users; i++) { if (!menu_input_key_bind_poll_find_trigger_pad( state, new_state, i)) continue; return true; } return false; }