[][src]Function winconsole::input::get_num_input_events

pub fn get_num_input_events() -> WinResult<u32>

Returns the number of input events which are available in the console input buffer.

Examples

let num = input::get_num_input_events().unwrap();
println!("input events available: {}", num);

Errors