0
0
Fork 0
mirror of https://git.do.srb2.org/KartKrew/Kart-Public.git synced 2025-04-26 20:10:56 +00:00

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;