|
MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API void MayaFlux::on_key_pressed | ( | const std::shared_ptr< Core::Window > & | window, |
| IO::Keys | key, | ||
| std::function< void()> | callback, | ||
| std::string | name = "" |
||
| ) |
Schedule a key press handler.
| window | Window to listen to |
| key | Key to wait for |
| callback | Function to call on key press |
| name | Optional name for the event handler |
Example:
Definition at line 123 of file Chronie.cpp.
References get_event_manager(), and MayaFlux::Kriya::key_pressed().
Here is the call graph for this function: