Ignore relative mouse movement when in absolute mouse mode

This commit is contained in:
def 2016-05-01 15:02:08 +02:00
parent 644a23ba57
commit 143fd88c2a

View file

@ -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