|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| Wiring & MayaFlux::Nexus::Wiring::on | ( | std::shared_ptr< Core::Window > | window, |
| IO::MouseButtons | button, | ||
| std::function< void(double, double)> | on_release | ||
| ) |
Fire the entity on mouse button press and invoke a release callback on release.
| window | Source window. |
| button | Mouse button to listen for. |
| on_release | Called with cursor position when the button is released. Cancelled with the wiring. |
Definition at line 74 of file Wiring.cpp.
References m_trigger, and MayaFlux::Nexus::Wiring::MouseTrigger::window.