[][src]Function winconsole::input::start

pub fn start() -> WinResult<InputContext>

Creates and returns an InputContext, and initialises input.

Examples

let mut ctx = input::start().unwrap();
let event = ctx.wait().unwrap();
println!("{}", event);

Errors