lock_keys

Crates.iolock_keys
lib.rslock_keys
version1.1.0
sourcesrc
created_at2019-12-21 12:43:14.138345
updated_at2023-01-03 00:04:48.755567
descriptionRust library for lock keys handling.
homepagehttps://github.com/risoflora/lock_keys
repositoryhttps://github.com/risoflora/lock_keys
max_upload_size
id191202
size37,512
Silvio Clécio (silvioprog)

documentation

README

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:

Commit count: 5

cargo fmt