Skip to content

Commit

Permalink
Merge pull request ddnet#8665 from Robyt3/Client-DirectInput-Removal
Browse files Browse the repository at this point in the history
Remove unused `CClient::DirectInput` function
  • Loading branch information
def- authored Jul 29, 2024
2 parents 83c9b6c + 92b0b90 commit dac12c7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
13 changes: 0 additions & 13 deletions src/engine/client/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,19 +236,6 @@ bool CClient::ConnectionProblems() const
return m_aNetClient[g_Config.m_ClDummy].GotProblems(MaxLatencyTicks() * time_freq() / GameTickSpeed()) != 0;
}

void CClient::DirectInput(int *pInput, int Size)
{
CMsgPacker Msg(NETMSG_INPUT, true);
Msg.AddInt(m_aAckGameTick[g_Config.m_ClDummy]);
Msg.AddInt(m_aPredTick[g_Config.m_ClDummy]);
Msg.AddInt(Size);

for(int i = 0; i < Size / 4; i++)
Msg.AddInt(pInput[i]);

SendMsgActive(&Msg, 0);
}

void CClient::SendInput()
{
int64_t Now = time_get();
Expand Down
1 change: 0 additions & 1 deletion src/engine/client/client.h
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,6 @@ class CClient : public IClient, public CDemoPlayer::IListener

IGraphics::CTextureHandle GetDebugFont() const override { return m_DebugFont; }

void DirectInput(int *pInput, int Size);
void SendInput();

// TODO: OPT: do this a lot smarter!
Expand Down

0 comments on commit dac12c7

Please sign in to comment.