lock_keys 1.0.0

Rust library for lock keys handling.
Documentation

lock_keys

Build Status Crates.io Documentation License

lock_keys provides a cross platform way for lock keys handling.

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

Example

The example below shows how to turn on the Number Lock key:

extern crate lock_keys;

use lock_keys::*;

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

Usage

Add this to your Cargo.toml:

[dependencies]
lock_keys = "1.0.0"

and this to your crate root:

extern crate lock_keys;

Contributions

Pull Requests and Issues are welcome!

License

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