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

Method ProcessEvents

src/Nazara/Platform/Window.cpp:349–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347 }
348
349 void Window::ProcessEvents(bool block)
350 {
351 NazaraAssert(m_impl, "Window not created");
352 NazaraUnused(block);
353
354 if (!m_asyncWindow)
355 m_impl->ProcessEvents(block);
356 else
357 {
358 LockGuard eventLock(m_eventMutex);
359
360 for (const WindowEvent& event : m_pendingEvents)
361 HandleEvent(event);
362
363 m_pendingEvents.clear();
364 }
365 }
366
367 void Window::SetCursor(CursorRef cursor)
368 {

Callers 3

RunMethod · 0.45
PollEventMethod · 0.45
WaitEventMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected