noct 0.1.0

A cross-platform library to input simulation.
Documentation
use noct::{Key, KeyboardControllable, Noct};
use std::thread;
use std::time::Duration;
use std::time::Instant;

fn main() {
    thread::sleep(Duration::from_secs(2));
    let mut noct = Noct::new();

    let now = Instant::now();

    // write text
    noct.key_sequence("Hello World! ❤️");

    let time = now.elapsed();
    println!("{:?}", time);

    // select all
    noct.key_down(Key::Control);
    noct.key_click(Key::Layout('a'));
    noct.key_up(Key::Control);
}