risoflora / lock_keys

Rust library for lock keys handling.

Home Page:https://crates.io/crates/lock_keys

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lock_keys

CI/CD Crates.io Documentation License

lock_keys provides a cross platform way for lock keys handling.

Supported platforms: Linux (Xlib static), Windows (winuser API) and macOS (IOKit).

Usage

Add this to your Cargo.toml:

[dependencies]
lock_keys = "*"

and then:

use lock_keys::*;

fn main() {
    let lock_key = LockKey::new();
    lock_key.enable(LockKeys::CapitalLock).unwrap();
}

Contributions

Pull Requests are welcome! =)

License

lock_keys is licensed under either of the following, at your option:

About

Rust library for lock keys handling.

https://crates.io/crates/lock_keys

License:Apache License 2.0


Languages

Language:Rust 100.0%