Fix a typo in CH Flightstick Pro's internal name

This commit is contained in:
Alexander Babikov 2021-12-29 09:49:38 +05:00
parent c8f9b8cbd3
commit c4af6f4f9b
2 changed files with 4 additions and 2 deletions

View File

@ -918,7 +918,7 @@ load_input_devices(void)
p = config_get_string(cat, "joystick_type", NULL);
if (p != NULL) {
if (!strcmp(p, "standard_2button"))
if (!strcmp(p, "standard_2button")) /* migrate renamed types */
joystick_type = joystick_get_from_internal_name("2axis_2button");
else if (!strcmp(p, "standard_4button"))
joystick_type = joystick_get_from_internal_name("2axis_4button");
@ -926,6 +926,8 @@ load_input_devices(void)
joystick_type = joystick_get_from_internal_name("2axis_6button");
else if (!strcmp(p, "standard_8button"))
joystick_type = joystick_get_from_internal_name("2axis_8button");
else if (!strcmp(p, "ch_flighstick_pro")) /* fix typo */
joystick_type = joystick_get_from_internal_name("ch_flightstick_pro");
joystick_type = joystick_get_from_internal_name(p);
if (!joystick_type) {

View File

@ -116,7 +116,7 @@ static void ch_flightstick_pro_a0_over(void *p)
const joystick_if_t joystick_ch_flightstick_pro =
{
"CH Flightstick Pro",
"ch_flighstick_pro",
"ch_flightstick_pro",
ch_flightstick_pro_init,
ch_flightstick_pro_close,
ch_flightstick_pro_read,