Core/Host: Allow frontends to block inputs

This commit is contained in:
spycrab 2019-03-18 17:30:33 +01:00
parent 0a3279ae6b
commit 61350b3d98
6 changed files with 23 additions and 2 deletions

View file

@ -14,8 +14,9 @@ using namespace ciface::ExpressionParser;
bool ControlReference::InputGateOn()
{
return SConfig::GetInstance().m_BackgroundInput || Host_RendererHasFocus() ||
Host_UINeedsControllerState();
return (SConfig::GetInstance().m_BackgroundInput || Host_RendererHasFocus() ||
Host_UINeedsControllerState()) &&
!Host_UIBlocksControllerState();
}
//