|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API Vruta::Event MayaFlux::Kriya::any_key | ( | std::shared_ptr< Core::Window > | window, |
| std::function< void(IO::Keys)> | callback | ||
| ) |
Creates an Event coroutine that triggers on any key press.
| window | Window to listen to |
| callback | Function to call with key code when any key is pressed |
Example:
Definition at line 102 of file InputEvents.cpp.
References callback, MayaFlux::Vruta::WindowEventFilter::event_type, MayaFlux::Core::KEY_PRESSED, and window.
Referenced by MayaFlux::on_any_key().
Here is the caller graph for this function: