]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_main.c
Added in_mouse_x and in_mouse_y, which contain the rel. coords of the mouse.
[xonotic/darkplaces.git] / cl_main.c
index f01040391e931c570a04eaff68daf4be00b331f0..1807fff4f586909cc228751142c215397ecb9414 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -1107,27 +1107,10 @@ int CL_ReadFromServer(void)
 CL_SendCmd
 =================
 */
-void CL_SendCmd(void)
+void CL_SendCmd(usercmd_t *cmd)
 {
-       usercmd_t cmd;
-
        if (cls.signon == SIGNONS)
-       {
-               // get basic movement from keyboard
-               CL_BaseMove(&cmd);
-               
-               // OS independent code
-               IN_PreMove();
-                       
-               // allow mice or other external controllers to add to the move
-               IN_Move(&cmd);
-                       
-               // OS independent code
-               IN_PostMove();
-                       
-               // send the unreliable message
-               CL_SendMove(&cmd);
-       }
+               CL_SendMove(cmd);
 
        if (cls.demoplayback)
        {