|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| Wiring & MayaFlux::Nexus::Wiring::on | ( | std::shared_ptr< Core::Window > | window, |
| IO::MouseButtons | button, | ||
| bool | held, | ||
| std::function< void(double, double)> | on_release = nullptr |
||
| ) |
Fire the entity on mouse-motion events while button is held.
Mirrors the key held overload. Cursor position is available via InfluenceContext on each qualifying event.
| window | Source window. |
| button | Button that must be pressed for the entity to fire. |
| held | Pass true to select the motion-while-held path. |
| on_release | Called when the button is released. |
Definition at line 62 of file Wiring.cpp.
References m_trigger, and MayaFlux::Nexus::Wiring::MouseTrigger::window.