Skip to content

Commit

Permalink
When using mouse lock navigation, invert the vertical axis
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 13, 2021
1 parent 7b7f7c2 commit f48cd28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/3d/qgscameracontroller.cpp
Expand Up @@ -583,7 +583,7 @@ void QgsCameraController::onPositionChangedFlyNavigation( Qt3DInput::QMouseEvent
double dy = mouse->y() - mMousePos.y();
if ( mPressedButton == Qt3DInput::QMouseEvent::LeftButton || mPressedButton == Qt3DInput::QMouseEvent::MiddleButton || ( mCaptureFpsMouseMovements && mPressedButton != Qt3DInput::QMouseEvent::RightButton ) )
{
float diffPitch = 0.2f * dy;
float diffPitch = ( mCaptureFpsMouseMovements ? -1 : 1 ) * 0.2f * dy;
float diffYaw = - 0.2f * dx;
rotateCamera( diffPitch, diffYaw );
updateCameraFromPose( false );
Expand Down

0 comments on commit f48cd28

Please sign in to comment.