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:
parent
898bbffaa7
commit
b6ada2b633
|
@ -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();
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue