mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 11:35:54 +00:00
Merge pull request #9459 from iwubcode/freelook_state_lock
FreeLookManager: acquire global input lock
This commit is contained in:
commit
caff472dbf
1 changed files with 2 additions and 0 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue