SDL2: check Rel Mouse Mode directly

This commit is contained in:
Alam Ed Arias 2016-06-07 17:16:11 -04:00
parent 246e0c21be
commit 366e870b0e

View file

@ -749,7 +749,7 @@ static void Impl_HandleMouseMotionEvent(SDL_MouseMotionEvent evt)
return;
}
if (!wrapmouseok)
if (SDL_GetRelativeMouseMode())
{
event.data2 = evt.xrel;
event.data3 = evt.yrel;