DolphinQt: Only trigger Free Look mouse movement when the Free Look camera is active

This commit is contained in:
iwubcode 2020-06-18 23:49:48 -05:00
parent bcf63c463b
commit b9d9b27a81
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ bool RenderWidget::event(QEvent* event)
break; break;
} }
case QEvent::MouseMove: case QEvent::MouseMove:
if (g_Config.bFreeLook) if (g_freelook_camera.IsActive())
OnFreeLookMouseMove(static_cast<QMouseEvent*>(event)); OnFreeLookMouseMove(static_cast<QMouseEvent*>(event));
[[fallthrough]]; [[fallthrough]];