MCPcopy Create free account
hub / github.com/demoth/jake2 / CreateCmd

Method CreateCmd

client/src/main/java/jake2/client/CL_input.java:338–358  ·  view source on GitHub ↗
(usercmd_t cmd)

Source from the content-addressed store, hash-verified

336 * ================= CL_CreateCmd =================
337 */
338 private static void CreateCmd(usercmd_t cmd) {
339 //usercmd_t cmd = new usercmd_t();
340
341 frame_msec = Globals.sys_frame_time - old_sys_frame_time;
342 if (frame_msec < 1)
343 frame_msec = 1;
344 if (frame_msec > 200)
345 frame_msec = 200;
346
347 // get basic movement from keyboard
348 BaseMove(cmd);
349
350 // allow mice or other external controllers to add to the move
351 IN.Move(cmd);
352
353 FinishMove(cmd);
354
355 old_sys_frame_time = Globals.sys_frame_time;
356
357 //return cmd;
358 }
359
360 /*
361 * ============ CL_InitInput ============

Callers 1

SendCmdMethod · 0.95

Calls 3

BaseMoveMethod · 0.95
MoveMethod · 0.95
FinishMoveMethod · 0.95

Tested by

no test coverage detected