gilrs-core-azul 0.6.9

Minimal event-based abstraction for working with gamepads (azul fork of gilrs-core: redirects libudev-sys -> libudev-sys-azul so it cross-compiles to Linux hosts without libudev; plus `Gamepad::serial()` (IOKit kIOHIDSerialNumberKey on macOS); otherwise identical to upstream 0.6.8)
Documentation

GilRs Core

azul fork. This is gilrs-core-azul, a fork of gilrs-core 0.6.8. Its only change is redirecting the Linux/BSD libudev-sys dependency to libudev-sys-azul, which dlopens libudev at runtime instead of link-binding it at build time. Upstream direct-links libudev via pkg-config, which breaks cross-compilation to Linux hosts that have no libudev; the runtime dlopen fixes that. This lets dependents (gilrs-azul, and in turn the azul GUI framework) cross-compile freely. All other code is upstream's, unchanged.

pipeline status Minimum rustc version

This library is minimal event-based abstraction for working with gamepads. If you are looking for something more high level, take a look at gilrs crate.

Platform specific notes

Linux

On Linux, GilRs read (and write, in case of force feedback) directly from appropriate /dev/input/event* file. This means that user has 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.