if (!vid_usingmouse)
{
vid_usingmouse = true;
- cl_ignoremousemove = true;
- if(vid_grabkeyboard.integer) {
- SDL_WM_GrabInput( SDL_GRAB_ON );
- }
+ cl_ignoremousemoves = 2;
+ SDL_WM_GrabInput( SDL_GRAB_ON );
SDL_ShowCursor( SDL_DISABLE );
}
}
if (vid_usingmouse)
{
vid_usingmouse = false;
- cl_ignoremousemove = true;
- if(vid_grabkeyboard.integer) {
- SDL_WM_GrabInput( SDL_GRAB_OFF );
- }
+ cl_ignoremousemoves = 2;
+ SDL_WM_GrabInput( SDL_GRAB_OFF );
SDL_ShowCursor( SDL_ENABLE );
}
}
#endif
SetClassLongPtr( info.window, GCLP_HICON, (LONG_PTR)icon );
}
+static void VID_SetIcon()
+{
+}
#else
// Adding the OS independent XPM version --blub
#include "darkplaces.xpm"
vid_activewindow = false;
vid_usingmouse = false;
- if(!vid_grabkeyboard.integer)
- SDL_WM_GrabInput(SDL_GRAB_OFF);
+ SDL_WM_GrabInput(SDL_GRAB_OFF);
return true;
}