mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-03 06:39:33 +00:00
FreeLookManager: acquire global input lock before accessing individual FreeLook control states
This commit is contained in:
parent
ebf3b5faf4
commit
af7384002f
1 changed files with 2 additions and 0 deletions
|
@ -149,6 +149,8 @@ void FreeLookController::Update()
|
||||||
if (!g_freelook_camera.IsActive())
|
if (!g_freelook_camera.IsActive())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
const auto lock = GetStateLock();
|
||||||
|
|
||||||
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());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue