MayaFlux 0.5.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 547 of file Wiring.cpp.

552{
553 auto& promise = co_await Kriya::GetEventPromise {};
554 while (true) {
555 if (promise.should_terminate)
556 break;
557 auto event = co_await Kriya::WindowEventAwaiter(source, filter);
558 if (auto* pos = std::get_if<Core::WindowEvent::MousePosData>(&event.data))
559 fabric.m_registrations[id].pending_cursor = glm::vec2(pos->x, pos->y);
560 fabric.fire(id);
561 }
562}

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: