Skip to main content

test_keyboard/
test_keyboard.rs

1use pc_remote::{Key, Keyboard, Result};
2
3fn main() -> Result<()> {
4    let hotkey = [Key::PlayPause];
5
6    Keyboard::press(&hotkey)?;
7    Keyboard::release(&hotkey)?;
8
9    Ok(())
10}