mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Ignore relative mouse movement when in absolute mouse mode
This commit is contained in:
parent
644a23ba57
commit
143fd88c2a
|
@ -59,7 +59,7 @@ void CInput::Init()
|
|||
|
||||
void CInput::MouseRelative(float *x, float *y)
|
||||
{
|
||||
if(!m_MouseFocus)
|
||||
if(!m_MouseFocus || !m_InputGrabbed)
|
||||
return;
|
||||
|
||||
#if defined(__ANDROID__) // No relative mouse on Android
|
||||
|
|
Loading…
Reference in a new issue