Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #9459 from iwubcode/freelook_state_lock
FreeLookManager: acquire global input lock
  • Loading branch information
lioncash committed Jan 21, 2021
2 parents ebf3b5f + af73840 commit caff472
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Core/Core/FreeLookManager.cpp
Expand Up @@ -149,6 +149,8 @@ void FreeLookController::Update()
if (!g_freelook_camera.IsActive())
return;

const auto lock = GetStateLock();

if (m_move_buttons->controls[MoveButtons::Up]->GetState<bool>())
g_freelook_camera.MoveVertical(-g_freelook_camera.GetSpeed());

Expand Down

0 comments on commit caff472

Please sign in to comment.