|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API Vruta::Event MayaFlux::Kriya::key_held | ( | std::shared_ptr< Core::Window > | window, |
| IO::Keys | key, | ||
| std::function< void()> | callback | ||
| ) |
Creates an Event coroutine that triggers on key press and repeats while held.
Fires the callback on initial press and on each repeat tick until the key is released. Suspends between ticks; does not spin.
| window | Window to listen to. |
| key | Key to wait for. |
| callback | Called on press and each repeat tick. |
Definition at line 54 of file InputEvents.cpp.
References MayaFlux::Vruta::WindowEventFilter::key_code, and MayaFlux::Core::KEY_RELEASED.
Referenced by MayaFlux::Nexus::Wiring::finalise(), and MayaFlux::Portal::Forma::Context::on_held().
Here is the caller graph for this function: