mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-24 22:34:54 +00:00
Core: Only respond to Free Look controller buttons when the camera is active
This commit is contained in:
parent
b9d9b27a81
commit
b4c41adac4
1 changed files with 3 additions and 0 deletions
|
@ -146,6 +146,9 @@ ControllerEmu::ControlGroup* FreeLookController::GetGroup(FreeLookGroup group) c
|
|||
|
||||
void FreeLookController::Update()
|
||||
{
|
||||
if (!g_freelook_camera.IsActive())
|
||||
return;
|
||||
|
||||
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