{
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 );
}
}
{
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 );
}
}
vid_activewindow = false;
vid_usingmouse = false;
- if(!vid_grabkeyboard.integer)
- SDL_WM_GrabInput(SDL_GRAB_OFF);
+ SDL_WM_GrabInput(SDL_GRAB_OFF);
return true;
}