#gamepad #gamepad-input #input #joystick

gilrs-core

Minimal event-based abstraction for working with gamepads

31 releases

new 0.6.1 Jan 13, 2025
0.6.0 Sep 15, 2024
0.5.15 Aug 25, 2024
0.5.13 Jul 8, 2024
0.1.0 Oct 30, 2018

#2134 in Game dev

Download history 26197/week @ 2024-09-26 28189/week @ 2024-10-03 23819/week @ 2024-10-10 24925/week @ 2024-10-17 26348/week @ 2024-10-24 27166/week @ 2024-10-31 23665/week @ 2024-11-07 22429/week @ 2024-11-14 27628/week @ 2024-11-21 32630/week @ 2024-11-28 31775/week @ 2024-12-05 34542/week @ 2024-12-12 21152/week @ 2024-12-19 14064/week @ 2024-12-26 24788/week @ 2025-01-02 29762/week @ 2025-01-09

96,047 downloads per month
Used in 150 crates (2 directly)

Apache-2.0/MIT

210KB
5K SLoC

GilRs Core

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.

Dependencies

~0.3–41MB
~533K SLoC