Core/Host: Allow frontends to block inputs
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in new issue
Block a user