Host: Add a new "UIHasFocus" hook to determine if the UI has focus

We can't use RendererHasFocus for this purpose because of some issues
with exclusive fullscreen, and the new RendererHasFocus implementation
didn't work for non-Render to Main Window cases, since the renderer
window wasn't managed by wx.
This commit is contained in:
Jasper St. Pierre committed 2014-07-16 10:27:21 -04:00
1 parent ee087f5953
commit 44307c9508
7 files changed
+31 -1

No files matched your search

@@ -84,7 +84,7 @@ bool Device::Control::InputGateOn()
{
if (SConfig::GetInstance().m_BackgroundInput)
return true;
else if (Host_RendererHasFocus())
else if (Host_RendererHasFocus() || Host_UIHasFocus())
return true;
else
return false;