Disable Background Input when Background Input is disabled

Only remaining issue is that clicking on the titlebar of the window, to give it focus, is already interpreted as input. But clicking on the window in the task bar, or using alt tab works to get back, without causing an input event.
This commit is contained in:
mimimi085181 2017-06-30 16:17:29 +02:00
parent 898bbffaa7
commit b6ada2b633

View File

@ -17,7 +17,7 @@ constexpr ControlState INPUT_DETECT_THRESHOLD = 0.55;
bool ControlReference::InputGateOn()
{
return SConfig::GetInstance().m_BackgroundInput || Host_RendererHasFocus() || Host_UIHasFocus();
return SConfig::GetInstance().m_BackgroundInput || Host_RendererHasFocus();
}
//