Core: Only respond to Free Look controller buttons when the camera is active

This commit is contained in:
iwubcode 2020-06-19 01:13:48 -05:00
parent b9d9b27a81
commit b4c41adac4
1 changed files with 3 additions and 0 deletions

View File

@ -146,6 +146,9 @@ ControllerEmu::ControlGroup* FreeLookController::GetGroup(FreeLookGroup group) c
void FreeLookController::Update() void FreeLookController::Update()
{ {
if (!g_freelook_camera.IsActive())
return;
if (m_move_buttons->controls[MoveButtons::Up]->GetState<bool>()) if (m_move_buttons->controls[MoveButtons::Up]->GetState<bool>())
g_freelook_camera.MoveVertical(-g_freelook_camera.GetSpeed()); g_freelook_camera.MoveVertical(-g_freelook_camera.GetSpeed());