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