Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
vigem-rust
A safe and pure Rust interface for the ViGEmBus Windows driver.
This library provides a high-level API to interact with the ViGEmBus driver, allowing you to create and control virtual game controllers like the Xbox 360 and DualShock 4.
The library is designed to be thread-safe, enabling you to manage and update controllers from multiple threads concurrently. It features a type-safe interface for building input reports and for receiving output notifications such as rumble commands and LED state changes.
Features
- Safely emulate Xbox 360 and Dualshock 4 controllers using modular Rust features.
- RAII-based resource management and thread-safe by design.
- Receive rumble and LED feedback via standard Rust channels.
- Supports DS4 motion controls and detailed multi-touch touchpad data.
Usage
Here is a simple example that creates a virtual Xbox 360 controller, waits for it to be ready, listens for notifications, and sends an input report.
use ;
use thread;
use Error;
use Duration;
Examples
More detailed examples can be found in the examples folder of the project repository.
License
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contributing
Contributions are welcome! Please feel free to submit a pull request or open an issue.