diff --git a/src/common/input/InputManager.cpp b/src/common/input/InputManager.cpp index 69d5ea753..1be97c882 100644 --- a/src/common/input/InputManager.cpp +++ b/src/common/input/InputManager.cpp @@ -363,7 +363,7 @@ bool InputDeviceManager::UpdateXboxPortInput(int usb_port, void* Buffer, int Dir // First check if ImGui is focus, then ignore any input update occur. // If somebody else is currently holding the lock, we won't wait and instead report no input changes - if (static_cast(!g_renderbase->IsImGuiFocus()) & static_cast(m_Mtx.try_lock())) { + if (!g_renderbase->IsImGuiFocus() && m_Mtx.try_lock()) { for (auto &dev_ptr : m_Devices) { if (dev_ptr->GetPort(usb_port)) { switch (xid_type)