From 32e9c1d3bee55fc98d47639ffc7613926a3e98b1 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 28 Nov 2007 07:03:10 +0000 Subject: [PATCH] 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 --- vid_sdl.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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; } -- 2.39.2