MCPcopy Create free account
hub / github.com/SFML/SFML / pollEvent

Method pollEvent

src/SFML/Window/WindowBase.cpp:142–155  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

140
141////////////////////////////////////////////////////////////
142std::optional<Event> WindowBase::pollEvent()
143{
144 std::optional<sf::Event> event; // Use a single local variable for NRVO
145
146 if (m_impl == nullptr)
147 return event; // Empty optional
148
149 event = m_impl->pollEvent();
150
151 if (event.has_value())
152 filterEvent(*event);
153
154 return event;
155}
156
157
158////////////////////////////////////////////////////////////

Callers 14

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
runMethod · 0.45
runMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected