MayaFlux 1.0.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 494 of file Context.cpp.

495{
496 if (!m_focused)
497 return;
498
499 auto it = m_callbacks.find(*m_focused);
500 if (it == m_callbacks.end())
501 return;
502
503 const int key_code = static_cast<int>(key);
504 auto key_it = it->second.key_release.find(key_code);
505 if (key_it != it->second.key_release.end())
506 key_it->second(*m_focused);
507}
std::unordered_map< uint32_t, ElementCallbacks > m_callbacks
Definition Context.hpp:361
std::optional< uint32_t > m_focused
Definition Context.hpp:383

References m_callbacks, and m_focused.

Referenced by on_release().

+ Here is the caller graph for this function: