#gamepad-input #gamepad #joystick #input

gilrs-core

Minimal event-based abstraction for working with gamepads

34 releases

0.6.4 Apr 6, 2025
0.6.3 Mar 10, 2025
0.6.2 Feb 9, 2025
0.6.0 Sep 15, 2024
0.1.0 Oct 30, 2018

#2099 in Game dev

Download history 36466/week @ 2025-01-15 26810/week @ 2025-01-22 24790/week @ 2025-01-29 34467/week @ 2025-02-05 27367/week @ 2025-02-12 26873/week @ 2025-02-19 31073/week @ 2025-02-26 28191/week @ 2025-03-05 34967/week @ 2025-03-12 31005/week @ 2025-03-19 30365/week @ 2025-03-26 22691/week @ 2025-04-02 29492/week @ 2025-04-09 21107/week @ 2025-04-16 36576/week @ 2025-04-23 28808/week @ 2025-04-30

119,240 downloads per month
Used in 157 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–32MB
~521K SLoC