[][src]Function winconsole::input::write

pub fn write(
    event: impl Into<InputEvent>,
    button_status: impl Into<Option<[bool; 5]>>
) -> WinResult<()>

Adds an input event directly to the input buffer.

Arguments

Examples

let mut event = FocusEvent::new();
event.focused = true;
input::write(event, None).unwrap();

Errors