static void in_dgamouse_f(struct cvar_s *var) { if (var->value) { Con_DPrintf("Callback: in_dgamouse ON\n"); IN_ActivateDGAMouse(); } else { Con_DPrintf("Callback: in_dgamouse OFF\n"); IN_DeactivateDGAMouse(); } }
void IN_UngrabMouse(void) { if (mouse_grab_active) { XUngrabPointer(x_disp, CurrentTime); XUndefineCursor(x_disp, x_win); mouse_grab_active = false; } #ifdef USE_XF86DGA if (dga_mouse_active) { IN_DeactivateDGAMouse(); } #endif }
/* =========== IN_UngrabMouse =========== */ void IN_UngrabMouse (void) { if (mouse_available && mouse_grab_active) { if (dga_mouse_active) { IN_DeactivateDGAMouse(); } // ungrab pointer XUngrabPointer(x_disp, CurrentTime); // show cursor if (x_win) XUndefineCursor(x_disp, x_win); mouse_grab_active = false; } }