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

◆ is_key_pressed()

bool MayaFlux::Vruta::WindowEventSource::is_key_pressed ( IO::Keys  key) const

Returns true if the given key is currently held.

Parameters
keyKey to query.

Definition at line 94 of file WindowEventSource.cpp.

95{
96 auto it = m_key_states.find(static_cast<int16_t>(key));
97 return it != m_key_states.end() && it->second;
98}
std::unordered_map< int16_t, bool > m_key_states

References m_key_states.