mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-02 18:21:06 +00:00
- Get mouse/controller input by pointed variable and not copy on return.
This commit is contained in:
parent
1f97e73501
commit
446218dd7b
15 changed files with 51 additions and 45 deletions
|
@ -136,8 +136,7 @@ void G_BuildTiccmd(ticcmd_t* cmd)
|
|||
}
|
||||
cmd->ucmd = {};
|
||||
I_GetEvent();
|
||||
auto input = CONTROL_GetInput();
|
||||
gi->GetInput(&input, inputScale, &cmd->ucmd);
|
||||
gi->GetInput(inputScale, &cmd->ucmd);
|
||||
cmd->consistency = consistency[myconnectindex][(maketic / ticdup) % BACKUPTICS];
|
||||
}
|
||||
|
||||
|
@ -615,8 +614,7 @@ void TryRunTics (void)
|
|||
if (!SyncInput())
|
||||
{
|
||||
I_GetEvent();
|
||||
auto input = CONTROL_GetInput();
|
||||
gi->GetInput(&input, inputScale);
|
||||
gi->GetInput(inputScale);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue