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

◆ is_mouse_pressed()

bool MayaFlux::Vruta::WindowEventSource::is_mouse_pressed ( int  button) const

Returns true if the given mouse button is currently held.

Parameters
buttonButton index.

Definition at line 100 of file WindowEventSource.cpp.

101{
102 auto it = m_button_states.find(button);
103 return it != m_button_states.end() && it->second;
104}
std::unordered_map< int, bool > m_button_states

References m_button_states.