mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-02 18:21:06 +00:00
- Initial conversion of game input into class GameInput
.
This commit is contained in:
parent
23186cd8bb
commit
8d11fef916
11 changed files with 117 additions and 95 deletions
|
@ -137,7 +137,7 @@ void G_BuildTiccmd(ticcmd_t* cmd)
|
|||
}
|
||||
cmd->ucmd = {};
|
||||
I_GetEvent();
|
||||
getInput(inputScale, gi->getConsoleAngles(), &cmd->ucmd);
|
||||
gameInput.getInput(inputScale, gi->getConsoleAngles(), &cmd->ucmd);
|
||||
cmd->consistency = consistency[myconnectindex][(maketic / ticdup) % BACKUPTICS];
|
||||
}
|
||||
|
||||
|
@ -261,6 +261,7 @@ static void GameTicker()
|
|||
case ga_level:
|
||||
Net_ClearFifo();
|
||||
inputState.ClearAllInput();
|
||||
gameInput.Clear();
|
||||
gamestate = GS_LEVEL;
|
||||
return;
|
||||
|
||||
|
@ -605,7 +606,7 @@ void TryRunTics (void)
|
|||
if (!SyncInput())
|
||||
{
|
||||
I_GetEvent();
|
||||
getInput(inputScale, gi->getConsoleAngles());
|
||||
gameInput.getInput(inputScale, gi->getConsoleAngles());
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue