[][src]Function winconsole::input::get_pressed_keys

pub fn get_pressed_keys() -> WinResult<Vec<KeyCode>>

Returns a list of keys that are currently in the pressed state.

Examples

let pressed = input::get_pressed_keys().unwrap();
for key in pressed {
    println!("{} is down", key);
}

Errors