MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ window_event_source_loop()

Vruta::Event MayaFlux::Nexus::Wiring::window_event_source_loop ( Vruta::WindowEventSource source,
Vruta::WindowEventFilter  filter,
Fabric fabric,
uint32_t  id 
)
private

Definition at line 513 of file Wiring.cpp.

518{
519 auto& promise = co_await Kriya::GetEventPromise {};
520 while (true) {
521 if (promise.should_terminate)
522 break;
523 auto event = co_await Kriya::WindowEventAwaiter(source, filter);
524 if (auto* pos = std::get_if<Core::WindowEvent::MousePosData>(&event.data))
525 fabric.m_registrations[id].pending_cursor = glm::vec2(pos->x, pos->y);
526 fabric.fire(id);
527 }
528}

References MayaFlux::Nexus::Fabric::fire(), and MayaFlux::Nexus::Fabric::m_registrations.

Referenced by finalise().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: