auto capture mouse on focus (#728)

This commit is contained in:
Tom Adams 2010-05-30 01:00:17 +00:00
parent 84e307029b
commit 47b68170ad

View file

@ -1657,7 +1657,7 @@ void CClient::Run()
m_WindowMustRefocus++;
}
if(Input()->KeyPressed(KEY_MOUSE_1))
if(m_WindowMustRefocus >= 3 || Input()->KeyPressed(KEY_MOUSE_1))
{
Input()->MouseModeRelative();
m_WindowMustRefocus = 0;