Core: Only respond to Free Look controller buttons when the camera is active
This commit is contained in:
1 parent
b9d9b27a81
commit
b4c41adac4
1 file changed
+3
@@ -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());
|
||||
|
||||
|
||||
Reference in new issue
Block a user