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.
GilRs - Game Input Library for Rust
GilRs abstract platform specific APIs to provide unified interfaces for working with gamepads. Additionally, library is trying to unify different devices, providing single controller layout.
The main repository for project is on GitLab but there is also GitHub mirror. If you want to contribute or have a question please use GitLab's issue tracker and pull requests not GitHub's.
Example
[]
= "0.2.0"
use ;
let mut gilrs = new;
// Event loop
loop
Supported features
Input | Hotplugging | Mappings | Force feedback | |
---|---|---|---|---|
Linux | ✓ | ✓ | ✓ | ✓ |
Windows (XInput) | ✓ | ✓ | n/a | ❌ |
Windows (DInput) | ❌ | ❌ | ❌ | ❌ |
OS X | ❌ | ❌ | ❌ | ❌ |
Android | ❌ | ❌ | ❌ | ❌ |
Platform specific notes
Linux
On Linux, GilRs read (and write, in case of force feedback) directly from appropriate
/dev/input/event*
file. This mean that user have to have read and write access to this file.
On most distros it shouldn't be a problem, but if it is, you will have to create udev rule.
To build GilRs, you will need pkg-config and libudev .pc file. On some
distributions this file is packaged in separate archive (for example libudev-dev
in Debian).
License
This project is licensed under the terms of both the Apache License (Version 2.0) and the MIT license. See LICENSE-APACHE and LICENSE-MIT for details.