Merge pull request #8609 from jordan-woyak/separate-hotkey-background-input

DolphinQt: Give hotkeys their own "background input" setting.
This commit is contained in:
Léo Lam
2020-03-15 22:35:49 +01:00
committed by GitHub
8 changed files with 19 additions and 8 deletions

View File

@ -1056,11 +1056,10 @@ void DoFrameStep()
}
}
void UpdateInputGate()
void UpdateInputGate(bool require_focus)
{
ControlReference::SetInputGate(
(SConfig::GetInstance().m_BackgroundInput || Host_RendererHasFocus()) &&
!Host_UIBlocksControllerState());
ControlReference::SetInputGate((!require_focus || Host_RendererHasFocus()) &&
!Host_UIBlocksControllerState());
}
} // namespace Core