Function cat_box::get_keyboard_state
source · [−]pub fn get_keyboard_state(ctx: &mut Context) -> KeyboardRepr
Expand description
Get the keyboard state.
let k = get_keyboard_state(ctx);
for code in k.keys {
println!("{}", code);
}