diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index 53761f600daf94c8354f6c45b0e26af162817be3..9800c8cc730b72ce5bb323214a9bf8b7bb5cbee9 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -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;