mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Get rid of setting_get_bind_type
This commit is contained in:
parent
cd95a0f663
commit
618bedb950
@ -1446,7 +1446,7 @@ static int menu_input_key_bind_set_mode_common(
|
||||
|
||||
menu_displaylist_info_init(&info);
|
||||
|
||||
bind_type = setting_get_bind_type(setting);
|
||||
bind_type = setting->bind_type;
|
||||
|
||||
binds->begin = bind_type;
|
||||
binds->last = bind_type;
|
||||
|
@ -554,13 +554,6 @@ static bool SETTINGS_LIST_APPEND_internal(
|
||||
return true;
|
||||
}
|
||||
|
||||
unsigned setting_get_bind_type(rarch_setting_t *setting)
|
||||
{
|
||||
if (!setting)
|
||||
return 0;
|
||||
return setting->bind_type;
|
||||
}
|
||||
|
||||
static int setting_bind_action_ok(
|
||||
rarch_setting_t *setting, size_t idx, bool wraparound)
|
||||
{
|
||||
@ -617,7 +610,7 @@ static int setting_bind_action_start(rarch_setting_t *setting)
|
||||
if (setting->index_offset)
|
||||
def_binds = (struct retro_keybind*)retro_keybinds_rest;
|
||||
|
||||
bind_type = setting_get_bind_type(setting);
|
||||
bind_type = setting->bind_type;
|
||||
keybind->key = def_binds[bind_type - MENU_SETTINGS_BIND_BEGIN].key;
|
||||
|
||||
keybind->mbutton = NO_BTN;
|
||||
|
@ -212,8 +212,6 @@ struct rarch_setting
|
||||
int setting_set_with_string_representation(
|
||||
rarch_setting_t* setting, const char *value);
|
||||
|
||||
unsigned setting_get_bind_type(rarch_setting_t *setting);
|
||||
|
||||
RETRO_END_DECLS
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user