MCPcopy Create free account
hub / github.com/ddnet/ddnet / ConsumeEvents

Method ConsumeEvents

src/engine/client/input.cpp:368–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368void CInput::ConsumeEvents(std::function<void(const CEvent &Event)> Consumer) const
369{
370 for(const CEvent &Event : m_vInputEvents)
371 {
372 // Only propagate valid input events
373 if(Event.m_InputCount == m_InputCounter)
374 {
375 Consumer(Event);
376 }
377 }
378}
379
380void CInput::Clear()
381{

Callers 2

OnUpdateMethod · 0.80
OnUpdateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected