|
MayaFlux 0.2.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 54 of file InputEvents.cpp.
References MayaFlux::Vruta::EventFilter::event_type, and MayaFlux::Core::KEY_PRESSED.
Referenced by MayaFlux::on_any_key().
Here is the caller graph for this function: