2 stable releases

1.1.0 Jan 3, 2023
1.0.0 Dec 21, 2019

#413 in Unix APIs

Download history 8/week @ 2024-02-16 51/week @ 2024-02-23 28/week @ 2024-03-01 36/week @ 2024-03-08 14/week @ 2024-03-15

81 downloads per month

MIT/Apache

21KB
453 lines

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:

Dependencies

~0–305KB