]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_wgl.c
Added in_mouse_x and in_mouse_y, which contain the rel. coords of the mouse.
[xonotic/darkplaces.git] / vid_wgl.c
index d54dfafd1a64e373855ea12352ec430b50711206..d7f8f946d57f35232dd0acf19e12dd4d847b4d32 100644 (file)
--- a/vid_wgl.c
+++ b/vid_wgl.c
@@ -1324,6 +1324,7 @@ void IN_MouseMove (usercmd_t *cmd)
        {
                GetCursorPos (&current_pos);
                ui_mouseupdate(current_pos.x - window_x, current_pos.y - window_y);
+               in_mouse_x = in_mouse_y = 0;
                return;
        }
 
@@ -1641,7 +1642,6 @@ void Joy_AdvancedUpdate_f (void)
        }
 }
 
-
 /*
 ===========
 IN_Commands