This commit is contained in:
daoge_cmd
2026-03-05 02:57:52 +08:00
parent 4108ed142b
commit 5922824950
4 changed files with 148 additions and 4 deletions

View File

@@ -123,7 +123,7 @@ void KeyboardMouseInput::Tick()
}
}
if ((m_mouseGrabbed || m_cursorHiddenForUI) && g_hWnd)
if (m_windowFocused && (m_mouseGrabbed || m_cursorHiddenForUI) && g_hWnd)
{
RECT rc;
GetClientRect(g_hWnd, &rc);