|
MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API Vruta::Event MayaFlux::Kriya::key_pressed | ( | std::shared_ptr< Core::Window > | window, |
| IO::Keys | key, | ||
| std::function< void()> | callback | ||
| ) |
Creates an Event coroutine that triggers on specific key press.
| window | Window to listen to |
| key | The key to wait for |
| callback | Function to call on key press |
Example:
Definition at line 10 of file InputEvents.cpp.
References MayaFlux::Vruta::EventFilter::event_type, MayaFlux::Vruta::EventFilter::key_code, and MayaFlux::Core::KEY_PRESSED.
Referenced by MayaFlux::on_key_pressed().
Here is the caller graph for this function: