|
|
|
@ -1011,7 +1011,7 @@ void Joystick::_executeButtonAction(const QString& action, bool buttonDown)
@@ -1011,7 +1011,7 @@ void Joystick::_executeButtonAction(const QString& action, bool buttonDown)
|
|
|
|
|
if (buttonDown) emit setVtolInFwdFlight(true); |
|
|
|
|
} else if (action == _buttonActionVTOLMultiRotor) { |
|
|
|
|
if (buttonDown) emit setVtolInFwdFlight(false); |
|
|
|
|
} else if (_activeVehicle->flightModes().contains(action) || _activeVehicle->extraJoystickFlightModes().contains(action)) { |
|
|
|
|
} else if (_activeVehicle->flightModes().contains(action)) { |
|
|
|
|
if (buttonDown) emit setFlightMode(action); |
|
|
|
|
} else if(action == _buttonActionContinuousZoomIn || action == _buttonActionContinuousZoomOut) { |
|
|
|
|
if (buttonDown) { |
|
|
|
@ -1128,10 +1128,6 @@ void Joystick::_buildActionList(Vehicle* activeVehicle)
@@ -1128,10 +1128,6 @@ void Joystick::_buildActionList(Vehicle* activeVehicle)
|
|
|
|
|
foreach(auto mode, list) { |
|
|
|
|
_assignableButtonActions.append(new AssignableButtonAction(this, mode)); |
|
|
|
|
} |
|
|
|
|
list = activeVehicle->extraJoystickFlightModes(); |
|
|
|
|
foreach(auto mode, list) { |
|
|
|
|
_assignableButtonActions.append(new AssignableButtonAction(this, mode)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
_assignableButtonActions.append(new AssignableButtonAction(this, _buttonActionVTOLFixedWing)); |
|
|
|
|
_assignableButtonActions.append(new AssignableButtonAction(this, _buttonActionVTOLMultiRotor)); |
|
|
|
|