|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API Vruta::Event MayaFlux::Kriya::mouse_dragged | ( | std::shared_ptr< Core::Window > | window, |
| IO::MouseButtons | button, | ||
| std::function< void(double, double)> | callback | ||
| ) |
Creates an Event coroutine that triggers on mouse drag with specific button.
| window | Window to listen to |
| button | Mouse button that must be held for drag |
| callback | Function to call on mouse drag with current position |
Example:
Definition at line 196 of file InputEvents.cpp.
References callback, MayaFlux::Vruta::WindowEventFilter::event_type, MayaFlux::Core::MOUSE_MOTION, and window.
Referenced by MayaFlux::Nexus::Wiring::finalise(), and MayaFlux::on_mouse_drag().
Here is the caller graph for this function: