Function mki::bind_key [−][src]
Expand description
Install any key handler that will be invoked on specified key presses.
use mki::*;
fn bind_some_key() {
bind_key(Keyboard::B, Action::handle_kb(|(key)| println!("B Pressed")));
}