pc-remote 0.1.1

This library provides cross-platform control over computer input devices
Documentation
1
2
3
4
5
6
7
8
9
10
use pc_remote::{Key, Keyboard, Result};

fn main() -> Result<()> {
    let hotkey = [Key::PlayPause];

    Keyboard::press(&hotkey)?;
    Keyboard::release(&hotkey)?;

    Ok(())
}