MCPcopy Create free account
hub / github.com/NazaraEngine/NazaraEngine / AddEvent

Method AddEvent

tests/Engine/Platform/EventHandler/EventState.cpp:35–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35void EventState::AddEvent(const Nz::WindowEvent& event)
36{
37 if (m_events.size() > 9)
38 m_events.pop_front();
39
40 m_events.push_back(Nz::String::Number(m_count) + " - " + ToString(event));
41
42 Nz::String content;
43 for (auto&& currentEvent : m_events)
44 {
45 content += currentEvent + "\n";
46 }
47 content += "\nM for Menu";
48 m_text.SetContent(content, 36);
49}
50
51void EventState::DrawMenu()
52{

Callers

nothing calls this directly

Calls 2

push_backMethod · 0.80
SetContentMethod · 0.80

Tested by

no test coverage detected