|
MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API Vruta::Event MayaFlux::Kriya::mouse_pressed | ( | std::shared_ptr< Core::Window > | window, |
| IO::MouseButtons | button, | ||
| std::function< void(double, double)> | callback | ||
| ) |
Creates an Event coroutine that triggers on specific mouse button press.
| window | Window to listen to |
| button | Mouse button to wait for |
| callback | Function to call on button press |
Example:
Definition at line 77 of file InputEvents.cpp.
References MayaFlux::Vruta::EventFilter::button, MayaFlux::Vruta::EventFilter::event_type, and MayaFlux::Core::MOUSE_BUTTON_PRESSED.
Referenced by MayaFlux::on_mouse_pressed().
Here is the caller graph for this function: