#gamepad-input #joystick #gamepad #input #linux

gilrs-core

Minimal event-based abstraction for working with gamepads

34 releases

new 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

#2215 in Game dev

Download history 19155/week @ 2024-12-20 14841/week @ 2024-12-27 26225/week @ 2025-01-03 36250/week @ 2025-01-10 29734/week @ 2025-01-17 22725/week @ 2025-01-24 28058/week @ 2025-01-31 34270/week @ 2025-02-07 23450/week @ 2025-02-14 33170/week @ 2025-02-21 28160/week @ 2025-02-28 31585/week @ 2025-03-07 34178/week @ 2025-03-14 31280/week @ 2025-03-21 24261/week @ 2025-03-28 25864/week @ 2025-04-04

121,549 downloads per month
Used in 154 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