| Crates.io | uinput-ioctls |
| lib.rs | uinput-ioctls |
| version | 0.1.0 |
| created_at | 2025-10-31 19:59:54.577459+00 |
| updated_at | 2025-10-31 19:59:54.577459+00 |
| description | Rust bindings for Linux uinput ioctl constants and helper macros. |
| homepage | |
| repository | https://github.com/joleuger/vuinputd |
| max_upload_size | |
| id | 1910677 |
| size | 8,279 |
uinput-ioctls provides Rust bindings and constants for the Linux uinput subsystem's ioctl interface.
It exposes ioctl_* helper functions and constants based on the Linux kernel's uinput.h, allowing you to interact with virtual input devices (keyboards, mice, gamepads, etc.) through Rust in a low-level but type-safe way.
This crate does not attempt to abstract or validate ioctl usage; it only provides constants and wrappers. Higher-level logic (such as event management or device configuration) should be built on top.
uinput ioctl definitions.nix crate for safe ioctl macros.UI_* constants and corresponding helper functions:
ui_dev_create, ui_dev_destroyui_dev_setup, ui_abs_setupui_set_evbit, ui_set_keybit, ...ui_begin_ff_upload, ui_end_ff_upload, etc.⚠️ Requires Linux and appropriate permissions to access
/dev/uinput.
uinput: High-level abstraction for creating virtual input devices.nix: Provides low-level Unix system call wrappers and ioctl macros.Licensed under the MIT License.
Johannes Leupolz dev@leupolz.eu