feat: Add support for SpaceMouse mod (6D input knob) (#1853)
Use `-DSPACEMOUSE=YES` CMake option to activate on Horus color targets. Co-authored-by: Niel Horne (elecpower), Raphael Coeffic (raphaelcoeffic) and Peter Feerick (pfeerick).
This commit is contained in:
co-authored by
Niel Horne (elecpower), Raphael Coeffic (raphaelcoeffic) and Peter Feerick (pfeerick).
parent
3765e678b9
commit
9dc4065525
@@ -501,6 +501,8 @@ QString GeneralSettings::serialModeToString(int value)
|
||||
return tr("GPS");
|
||||
case AUX_SERIAL_DEBUG:
|
||||
return tr("Debug");
|
||||
case AUX_SERIAL_SPACEMOUSE:
|
||||
return tr("SpaceMouse");
|
||||
default:
|
||||
return CPN_STR_UNKNOWN_ITEM;
|
||||
}
|
||||
@@ -576,8 +578,9 @@ AbstractStaticItemModel * GeneralSettings::serialModeItemModel(int port_nr)
|
||||
if (port_nr == SP_VCP &&
|
||||
(i == AUX_SERIAL_TELE_IN ||
|
||||
i == AUX_SERIAL_SBUS_TRAINER ||
|
||||
i == AUX_SERIAL_GPS)) {
|
||||
// These 3 are disabled on VCP
|
||||
i == AUX_SERIAL_GPS ||
|
||||
i == AUX_SERIAL_SPACEMOUSE)) {
|
||||
// These are disabled on VCP
|
||||
continue;
|
||||
}
|
||||
mdl->appendToItemList(serialModeToString(i), i);
|
||||
|
||||
Reference in New Issue
Block a user