mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
(Input) Add two input options - input_duty_cycle/input_turbo_period
This commit is contained in:
parent
193e0ad77a
commit
c2ec82b996
@ -441,6 +441,8 @@ int menu_entries_push_list(menu_handle_t *menu,
|
|||||||
MENU_SETTINGS_BIND_ANALOG_MODE, 0);
|
MENU_SETTINGS_BIND_ANALOG_MODE, 0);
|
||||||
add_setting_entry(menu,list,"input_axis_threshold", 0, setting_data);
|
add_setting_entry(menu,list,"input_axis_threshold", 0, setting_data);
|
||||||
add_setting_entry(menu,list,"input_autodetect_enable", 0, setting_data);
|
add_setting_entry(menu,list,"input_autodetect_enable", 0, setting_data);
|
||||||
|
add_setting_entry(menu,list,"input_turbo_period", 0, setting_data);
|
||||||
|
add_setting_entry(menu,list,"input_duty_cycle", 0, setting_data);
|
||||||
file_list_push(list, "Bind Mode", "",
|
file_list_push(list, "Bind Mode", "",
|
||||||
MENU_SETTINGS_CUSTOM_BIND_MODE, 0);
|
MENU_SETTINGS_CUSTOM_BIND_MODE, 0);
|
||||||
file_list_push(list, "Configure All (RetroPad)", "",
|
file_list_push(list, "Configure All (RetroPad)", "",
|
||||||
@ -449,9 +451,7 @@ int menu_entries_push_list(menu_handle_t *menu,
|
|||||||
MENU_SETTINGS_CUSTOM_BIND_DEFAULT_ALL, 0);
|
MENU_SETTINGS_CUSTOM_BIND_DEFAULT_ALL, 0);
|
||||||
add_setting_entry(menu,list,"osk_enable", 0, setting_data);
|
add_setting_entry(menu,list,"osk_enable", 0, setting_data);
|
||||||
for (i = MENU_SETTINGS_BIND_BEGIN; i <= MENU_SETTINGS_BIND_ALL_LAST; i++)
|
for (i = MENU_SETTINGS_BIND_BEGIN; i <= MENU_SETTINGS_BIND_ALL_LAST; i++)
|
||||||
file_list_push(list,
|
add_setting_entry(menu, list, input_config_bind_map[i - MENU_SETTINGS_BIND_BEGIN].base, i, setting_data);
|
||||||
input_config_bind_map[i - MENU_SETTINGS_BIND_BEGIN].desc,
|
|
||||||
"", i, 0);
|
|
||||||
}
|
}
|
||||||
else if (!strcmp(label, "Driver Options"))
|
else if (!strcmp(label, "Driver Options"))
|
||||||
{
|
{
|
||||||
|
@ -2319,8 +2319,8 @@ rarch_setting_t *setting_data_get_list(void)
|
|||||||
|
|
||||||
START_SUB_GROUP("Turbo/Deadzone")
|
START_SUB_GROUP("Turbo/Deadzone")
|
||||||
CONFIG_FLOAT(g_settings.input.axis_threshold, "input_axis_threshold", "Input Axis Threshold", axis_threshold, "%.3f", GROUP_NAME, SUBGROUP_NAME, general_write_handler, general_read_handler)
|
CONFIG_FLOAT(g_settings.input.axis_threshold, "input_axis_threshold", "Input Axis Threshold", axis_threshold, "%.3f", GROUP_NAME, SUBGROUP_NAME, general_write_handler, general_read_handler)
|
||||||
CONFIG_UINT(g_settings.input.turbo_period, "input_turbo_period", "Turbo Period", turbo_period, GROUP_NAME, SUBGROUP_NAME, general_write_handler, general_read_handler)
|
CONFIG_UINT(g_settings.input.turbo_period, "input_turbo_period", "Turbo Period", turbo_period, GROUP_NAME, SUBGROUP_NAME, general_write_handler, general_read_handler) WITH_RANGE(1, 0, 1, true, false)
|
||||||
CONFIG_UINT(g_settings.input.turbo_duty_cycle, "input_duty_cycle", "Duty Cycle", turbo_duty_cycle, GROUP_NAME, SUBGROUP_NAME, general_write_handler, general_read_handler)
|
CONFIG_UINT(g_settings.input.turbo_duty_cycle, "input_duty_cycle", "Duty Cycle", turbo_duty_cycle, GROUP_NAME, SUBGROUP_NAME, general_write_handler, general_read_handler) WITH_RANGE(1, 0, 1, true, false)
|
||||||
END_SUB_GROUP()
|
END_SUB_GROUP()
|
||||||
|
|
||||||
// The second argument to config bind is 1 based for players and 0 only for meta keys
|
// The second argument to config bind is 1 based for players and 0 only for meta keys
|
||||||
|
Loading…
x
Reference in New Issue
Block a user