Skip to content

Rust library for lock keys handling.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

risoflora/lock_keys

Folders and files

NameName
Last commit message
Last commit date
Jan 25, 2025
Jan 2, 2023
Jan 2, 2023
Jan 2, 2023
Dec 21, 2019
Jan 2, 2023
Jan 25, 2025
Dec 21, 2019
Dec 21, 2019
Jan 2, 2023

Repository files navigation

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: