mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-26 17:50:56 +00:00
Show also lightgun bind labels instead of only 'N/A' (#15535)
This commit is contained in:
parent
0b9e5975f5
commit
dbdcf1482e
@ -201,9 +201,8 @@ static const struct retro_keybind retro_keybinds_1[] = {
|
|||||||
{
|
{
|
||||||
NULL, NULL,
|
NULL, NULL,
|
||||||
AXIS_NONE, AXIS_NONE, AXIS_NONE,
|
AXIS_NONE, AXIS_NONE, AXIS_NONE,
|
||||||
RARCH_LIGHTGUN_RELOAD,
|
|
||||||
MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_RELOAD, RETROK_UNKNOWN,
|
MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_RELOAD, RETROK_UNKNOWN,
|
||||||
NO_BTN, NO_BTN, 0,
|
RARCH_LIGHTGUN_RELOAD, RETRO_DEVICE_ID_MOUSE_RIGHT, NO_BTN, 0,
|
||||||
true
|
true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -838,7 +837,7 @@ static const struct retro_keybind retro_keybinds_1[] = {
|
|||||||
NULL, NULL,
|
NULL, NULL,
|
||||||
AXIS_NONE, AXIS_NONE, AXIS_NONE,
|
AXIS_NONE, AXIS_NONE, AXIS_NONE,
|
||||||
MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_RELOAD, RETROK_UNKNOWN,
|
MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_RELOAD, RETROK_UNKNOWN,
|
||||||
RARCH_LIGHTGUN_RELOAD, NO_BTN, NO_BTN, 0,
|
RARCH_LIGHTGUN_RELOAD, RETRO_DEVICE_ID_MOUSE_RIGHT, NO_BTN, 0,
|
||||||
true
|
true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -1473,7 +1472,7 @@ static const struct retro_keybind retro_keybinds_1[] = {
|
|||||||
NULL, NULL,
|
NULL, NULL,
|
||||||
AXIS_NONE, AXIS_NONE, AXIS_NONE,
|
AXIS_NONE, AXIS_NONE, AXIS_NONE,
|
||||||
MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_RELOAD, RETROK_UNKNOWN,
|
MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_RELOAD, RETROK_UNKNOWN,
|
||||||
RARCH_LIGHTGUN_RELOAD, NO_BTN, NO_BTN, 0,
|
RARCH_LIGHTGUN_RELOAD, RETRO_DEVICE_ID_MOUSE_RIGHT, NO_BTN, 0,
|
||||||
true
|
true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -2122,7 +2121,7 @@ static const struct retro_keybind retro_keybinds_rest[] = {
|
|||||||
NULL, NULL,
|
NULL, NULL,
|
||||||
AXIS_NONE, AXIS_NONE, AXIS_NONE,
|
AXIS_NONE, AXIS_NONE, AXIS_NONE,
|
||||||
MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_RELOAD, RETROK_UNKNOWN,
|
MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_RELOAD, RETROK_UNKNOWN,
|
||||||
RARCH_LIGHTGUN_RELOAD, NO_BTN, NO_BTN, 0,
|
RARCH_LIGHTGUN_RELOAD, RETRO_DEVICE_ID_MOUSE_RIGHT, NO_BTN, 0,
|
||||||
true
|
true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -757,9 +757,9 @@ static int setting_bind_action_start(rarch_setting_t *setting)
|
|||||||
def_binds = (struct retro_keybind*)retro_keybinds_rest;
|
def_binds = (struct retro_keybind*)retro_keybinds_rest;
|
||||||
|
|
||||||
bind_type = setting->bind_type;
|
bind_type = setting->bind_type;
|
||||||
keybind->key = def_binds[bind_type - MENU_SETTINGS_BIND_BEGIN].key;
|
|
||||||
|
|
||||||
keybind->mbutton = NO_BTN;
|
keybind->key = def_binds[bind_type - MENU_SETTINGS_BIND_BEGIN].key;
|
||||||
|
keybind->mbutton = def_binds[bind_type - MENU_SETTINGS_BIND_BEGIN].mbutton;
|
||||||
|
|
||||||
/* Store new mapping bit */
|
/* Store new mapping bit */
|
||||||
input_keyboard_mapping_bits(1, keybind->key);
|
input_keyboard_mapping_bits(1, keybind->key);
|
||||||
@ -9143,7 +9143,10 @@ static bool setting_append_list_input_player_options(
|
|||||||
sizeof(label) - _len);
|
sizeof(label) - _len);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
strlcpy(label + _len, value_na, sizeof(label) - _len);
|
snprintf(label, sizeof(label), "%s (%s)",
|
||||||
|
input_config_bind_map_get_desc(i),
|
||||||
|
value_na);
|
||||||
|
|
||||||
if (settings->bools.input_descriptor_hide_unbound)
|
if (settings->bools.input_descriptor_hide_unbound)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user