lock_keys
lock_keys
provides a cross platform way for lock keys handling.
Supported platforms: Linux (Xlib static) and Windows (winuser API).
The example below shows how to turn on the Number Lock key:
```rust extern crate lock_keys;
use lock_keys::*;
fn main() { let lockkey = LockKey::new(); lockkey.enable(LockKeys::NumberLock).unwrap(); } ```
Add this to your Cargo.toml
:
ini
[dependencies]
lock_keys = "1.0.0"
and this to your crate root:
rust
extern crate lock_keys;
Pull Requests and Issues are welcome!
lock_keys
is licensed under either of the following, at your option: