From be122a160c93e3f7387000b62163021aa9f26cdd Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Wed, 6 Nov 2013 04:21:19 +0000 Subject: Clear relative mouse state after moving mouse cursor to corner to prevent "jumps" of the mouse when activating the menu. Subversion-branch: /branches/v2-branch Subversion-revision: 2743 --- src/i_video.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/i_video.c b/src/i_video.c index ac75dd50..606fb5ac 100644 --- a/src/i_video.c +++ b/src/i_video.c @@ -929,6 +929,7 @@ static void UpdateGrab(void) // example. SDL_WarpMouse(screen->w - 16, screen->h - 16); + SDL_GetRelativeMouseState(NULL, NULL); } currently_grabbed = grab; -- cgit v1.2.3