mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
auto capture mouse on focus (#728)
This commit is contained in:
parent
84e307029b
commit
47b68170ad
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue