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

◆ handle_key_release()

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

Definition at line 406 of file Context.cpp.

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

References m_callbacks, and m_focused.

Referenced by on_release().

+ Here is the caller graph for this function: