Fix a typo in CH Flightstick Pro's internal name
This commit is contained in:
@@ -917,7 +917,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");
|
||||
@@ -925,6 +925,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"))
|
||||
joystick_type = joystick_get_from_internal_name("ch_flightstick_pro");
|
||||
|
||||
joystick_type = joystick_get_from_internal_name(p);
|
||||
if (!joystick_type) {
|
||||
|
@@ -88,7 +88,7 @@ static const struct {
|
||||
{ "3axis_2button", &joystick_3axis_2button },
|
||||
{ "3axis_4button", &joystick_3axis_4button },
|
||||
{ "4axis_4button", &joystick_4axis_4button },
|
||||
{ "ch_flighstick_pro", &joystick_ch_flightstick_pro },
|
||||
{ "ch_flightstick_pro", &joystick_ch_flightstick_pro },
|
||||
{ "sidewinder_pad", &joystick_sw_pad },
|
||||
{ "thrustmaster_fcs", &joystick_tm_fcs },
|
||||
{ "", NULL }
|
||||
|
Reference in New Issue
Block a user