Registry / other / uinput

uinput

JSON →
library0.1.3rscratesunverified

Linux uinput wrapper for creating input devices.

# Cargo.toml [dependencies] uinput = "0.1.3"
INSTALL
IMPORT
SIG · UINPUT
U
uinput
otherrustv0.1.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Device
use uinput::Device;

Create a virtual input device on Linux.

use uinput::Device; use std::thread::sleep; use std::time::Duration; fn main() -> Result<(), Box<dyn std::error::Error>> { let mut device = Device::new("test")?; device.syn()?; sleep(Duration::from_secs(1)); Ok(()) }
Debug
Known issues
gotchaRequires root or appropriate permissions to create uinput devices.
fix
Run with sudo or add user to the input group.
affects: >=0.1.0
Upgrade
Version history
0.1.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
uinput — cargo add uinput · libregistry