inputkit 0.1.0

Keyboard and mouse input automation for Windows
Documentation
use std::{thread, time::Duration};

use inputkit::{Key, keyboard};

fn main() {
    println!("Press A. Press Escape to quit.");

    loop {
        if keyboard::pressed(Key::A) {
            println!("A pressed");
        }
        if keyboard::released(Key::A) {
            println!("A released");
        }
        if keyboard::pressed(Key::Escape) {
            break;
        }

        thread::sleep(Duration::from_millis(10));
    }
}