From b6ada2b63309333119df9034e5aeed536850bb2c Mon Sep 17 00:00:00 2001 From: mimimi085181 Date: Fri, 30 Jun 2017 16:17:29 +0200 Subject: [PATCH] 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. --- Source/Core/InputCommon/ControlReference/ControlReference.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/InputCommon/ControlReference/ControlReference.cpp b/Source/Core/InputCommon/ControlReference/ControlReference.cpp index e75d6330ee..c92d3601ed 100644 --- a/Source/Core/InputCommon/ControlReference/ControlReference.cpp +++ b/Source/Core/InputCommon/ControlReference/ControlReference.cpp @@ -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(); } //