Core/Host: Allow frontends to block inputs

This commit is contained in:
spycrab committed 2019-03-21 13:16:21 +01:00
1 parent 0a3279ae6b
commit 61350b3d98
6 files changed
+23 -2

No files matched your search

@@ -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();
}
//