From: havoc Date: Wed, 28 Nov 2007 07:03:10 +0000 (+0000) Subject: reverted code that used vid_grabkeyboard for SDL input grabbing, because X-Git-Tag: xonotic-v0.1.0preview~2756 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=32e9c1d3bee55fc98d47639ffc7613926a3e98b1;p=xonotic%2Fdarkplaces.git reverted code that used vid_grabkeyboard for SDL input grabbing, because this allowed the mouse to leave the window which is unacceptable git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7728 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/vid_sdl.c b/vid_sdl.c index da6f5299..a9adbde3 100644 --- a/vid_sdl.c +++ b/vid_sdl.c @@ -242,9 +242,7 @@ static void IN_Activate( qboolean grab ) { vid_usingmouse = true; cl_ignoremousemove = true; - if(vid_grabkeyboard.integer) { - SDL_WM_GrabInput( SDL_GRAB_ON ); - } + SDL_WM_GrabInput( SDL_GRAB_ON ); SDL_ShowCursor( SDL_DISABLE ); } } @@ -254,9 +252,7 @@ static void IN_Activate( qboolean grab ) { vid_usingmouse = false; cl_ignoremousemove = true; - if(vid_grabkeyboard.integer) { - SDL_WM_GrabInput( SDL_GRAB_OFF ); - } + SDL_WM_GrabInput( SDL_GRAB_OFF ); SDL_ShowCursor( SDL_ENABLE ); } } @@ -754,8 +750,7 @@ int VID_InitMode(int fullscreen, int width, int height, int bpp, int refreshrate vid_activewindow = false; vid_usingmouse = false; - if(!vid_grabkeyboard.integer) - SDL_WM_GrabInput(SDL_GRAB_OFF); + SDL_WM_GrabInput(SDL_GRAB_OFF); return true; }