#gamepad #gamepad-input #input #joystick

gilrs-core

Minimal event-based abstraction for working with gamepads

32 releases

0.6.2 Feb 9, 2025
0.6.0 Sep 15, 2024
0.5.13 Jul 8, 2024
0.5.11 Mar 6, 2024
0.1.0 Oct 30, 2018

#2143 in Game dev

Download history 27357/week @ 2024-10-27 27677/week @ 2024-11-03 21398/week @ 2024-11-10 23797/week @ 2024-11-17 28940/week @ 2024-11-24 33952/week @ 2024-12-01 32178/week @ 2024-12-08 31485/week @ 2024-12-15 15543/week @ 2024-12-22 16347/week @ 2024-12-29 29492/week @ 2025-01-05 35831/week @ 2025-01-12 31098/week @ 2025-01-19 20009/week @ 2025-01-26 31940/week @ 2025-02-02 32316/week @ 2025-02-09

117,708 downloads per month
Used in 152 crates (2 directly)

Apache-2.0/MIT

205KB
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
~532K SLoC