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

◆ handle_key_held()

void MayaFlux::Portal::Forma::Context::handle_key_held ( IO::Keys  key)
private

Definition at line 407 of file Context.cpp.

408{
409 if (!m_focused)
410 return;
411
412 auto it = m_callbacks.find(*m_focused);
413 if (it == m_callbacks.end())
414 return;
415
416 const int key_code = static_cast<int>(key);
417 auto key_it = it->second.key_held.find(key_code);
418 if (key_it != it->second.key_held.end())
419 key_it->second(*m_focused);
420}
std::unordered_map< uint32_t, ElementCallbacks > m_callbacks
Definition Context.hpp:252
std::optional< uint32_t > m_focused
Definition Context.hpp:269

References m_callbacks, and m_focused.

Referenced by on_held().

+ Here is the caller graph for this function: