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

◆ handle_subscribed_key()

void MayaFlux::Portal::Forma::Context::handle_subscribed_key ( IO::Keys key,
const Core::WindowEvent & event )
private

Definition at line 719 of file Context.cpp.

720{
721 sync_size();
722 if (!m_focused)
723 return;
724
725 dispatch(*m_focused, event.type, glm::vec2(0.F), event.data, std::nullopt, key);
726}
void sync_size()
Run the resize callbacks if the window's size differs from the size they last saw.
Definition Context.cpp:746
void dispatch(uint32_t id, Core::WindowEventType type, glm::vec2 ndc, Core::WindowEvent::EventData data={}, std::optional< IO::MouseButtons > button=std::nullopt, std::optional< IO::Keys > key=std::nullopt)
Definition Context.cpp:728
std::optional< uint32_t > m_focused
Definition Context.hpp:499

References MayaFlux::Core::WindowEvent::data, dispatch(), m_focused, sync_size(), and MayaFlux::Core::WindowEvent::type.

Referenced by subscribe().

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