MayaFlux 0.4.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 392 of file Context.cpp.

393{
394 if (!m_focused)
395 return;
396
397 auto it = m_callbacks.find(*m_focused);
398 if (it == m_callbacks.end())
399 return;
400
401 const int key_code = static_cast<int>(key);
402 auto key_it = it->second.key_release.find(key_code);
403 if (key_it != it->second.key_release.end())
404 key_it->second(*m_focused);
405}
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_release().

+ Here is the caller graph for this function: