bool menu_input_poll_find_trigger(struct menu_bind_state *state, struct menu_bind_state *new_state) { unsigned i; if (!state || !new_state) return false; for (i = 0; i < g_settings.input.max_users; i++) { if (!menu_input_poll_find_trigger_pad(state, new_state, i)) continue; /* Update the joypad mapping automatically. * More friendly that way. */ g_settings.input.joypad_map[state->user] = i; return true; } return false; }
static bool menu_input_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_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; }