mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
Rename some functions
This commit is contained in:
parent
d4e543d600
commit
da96fc54a6
@ -557,7 +557,7 @@ static int setting_data_string_dir_action_start_default(void *data)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int setting_data_uint_action_start_analog_dpad_mode(void *data)
|
static int setting_data_action_start_analog_dpad_mode(void *data)
|
||||||
{
|
{
|
||||||
rarch_setting_t *setting = (rarch_setting_t*)data;
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
||||||
|
|
||||||
@ -581,7 +581,7 @@ static int setting_data_uint_action_start_default(void *data)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int setting_data_uint_action_start_libretro_device_type(void *data)
|
static int setting_data_action_start_libretro_device_type(void *data)
|
||||||
{
|
{
|
||||||
unsigned current_device, i, devices[128];
|
unsigned current_device, i, devices[128];
|
||||||
const struct retro_controller_info *desc;
|
const struct retro_controller_info *desc;
|
||||||
@ -710,7 +710,7 @@ static int setting_data_bind_action_start(void *data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* setting_data_uint_action_toggle_analog_dpad_mode
|
* setting_data_action_toggle_analog_dpad_mode
|
||||||
* @data : pointer to setting
|
* @data : pointer to setting
|
||||||
* @action : toggle action value. Can be either one of :
|
* @action : toggle action value. Can be either one of :
|
||||||
* MENU_ACTION_RIGHT | MENU_ACTION_LEFT
|
* MENU_ACTION_RIGHT | MENU_ACTION_LEFT
|
||||||
@ -720,7 +720,7 @@ static int setting_data_bind_action_start(void *data)
|
|||||||
*
|
*
|
||||||
* Returns: 0 on success, -1 on error.
|
* Returns: 0 on success, -1 on error.
|
||||||
**/
|
**/
|
||||||
static int setting_data_uint_action_toggle_analog_dpad_mode(void *data, unsigned action)
|
static int setting_data_action_toggle_analog_dpad_mode(void *data, unsigned action)
|
||||||
{
|
{
|
||||||
unsigned port = 0;
|
unsigned port = 0;
|
||||||
rarch_setting_t *setting = (rarch_setting_t*)data;
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
||||||
@ -749,7 +749,7 @@ static int setting_data_uint_action_toggle_analog_dpad_mode(void *data, unsigned
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* setting_data_uint_action_toggle_libretro_device_type
|
* setting_data_action_toggle_libretro_device_type
|
||||||
* @data : pointer to setting
|
* @data : pointer to setting
|
||||||
* @action : toggle action value. Can be either one of :
|
* @action : toggle action value. Can be either one of :
|
||||||
* MENU_ACTION_RIGHT | MENU_ACTION_LEFT
|
* MENU_ACTION_RIGHT | MENU_ACTION_LEFT
|
||||||
@ -759,7 +759,7 @@ static int setting_data_uint_action_toggle_analog_dpad_mode(void *data, unsigned
|
|||||||
*
|
*
|
||||||
* Returns: 0 on success, -1 on error.
|
* Returns: 0 on success, -1 on error.
|
||||||
**/
|
**/
|
||||||
static int setting_data_uint_action_toggle_libretro_device_type(
|
static int setting_data_action_toggle_libretro_device_type(
|
||||||
void *data, unsigned action)
|
void *data, unsigned action)
|
||||||
{
|
{
|
||||||
unsigned current_device, current_idx, i, devices[128];
|
unsigned current_device, current_idx, i, devices[128];
|
||||||
@ -4682,8 +4682,8 @@ static bool setting_data_append_list_input_options(
|
|||||||
general_read_handler);
|
general_read_handler);
|
||||||
(*list)[list_info->index - 1].index = user + 1;
|
(*list)[list_info->index - 1].index = user + 1;
|
||||||
(*list)[list_info->index - 1].index_offset = user;
|
(*list)[list_info->index - 1].index_offset = user;
|
||||||
(*list)[list_info->index - 1].action_toggle = &setting_data_uint_action_toggle_libretro_device_type;
|
(*list)[list_info->index - 1].action_toggle = &setting_data_action_toggle_libretro_device_type;
|
||||||
(*list)[list_info->index - 1].action_start = &setting_data_uint_action_start_libretro_device_type;
|
(*list)[list_info->index - 1].action_start = &setting_data_action_start_libretro_device_type;
|
||||||
|
|
||||||
CONFIG_UINT(
|
CONFIG_UINT(
|
||||||
g_settings.input.analog_dpad_mode[user],
|
g_settings.input.analog_dpad_mode[user],
|
||||||
@ -4696,8 +4696,8 @@ static bool setting_data_append_list_input_options(
|
|||||||
general_read_handler);
|
general_read_handler);
|
||||||
(*list)[list_info->index - 1].index = user + 1;
|
(*list)[list_info->index - 1].index = user + 1;
|
||||||
(*list)[list_info->index - 1].index_offset = user;
|
(*list)[list_info->index - 1].index_offset = user;
|
||||||
(*list)[list_info->index - 1].action_toggle = &setting_data_uint_action_toggle_analog_dpad_mode;
|
(*list)[list_info->index - 1].action_toggle = &setting_data_action_toggle_analog_dpad_mode;
|
||||||
(*list)[list_info->index - 1].action_start = &setting_data_uint_action_start_analog_dpad_mode;
|
(*list)[list_info->index - 1].action_start = &setting_data_action_start_analog_dpad_mode;
|
||||||
|
|
||||||
CONFIG_ACTION(
|
CONFIG_ACTION(
|
||||||
key[user],
|
key[user],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user