#gamepad #gamepad-input #input #joystick

gilrs-core

Minimal event-based abstraction for working with gamepads

30 releases

0.6.0 Sep 15, 2024
0.5.13 Jul 8, 2024
0.5.11 Mar 6, 2024
0.5.10 Dec 17, 2023
0.1.0 Oct 30, 2018

#2074 in Game dev

Download history 23002/week @ 2024-07-19 23889/week @ 2024-07-26 20952/week @ 2024-08-02 29147/week @ 2024-08-09 22556/week @ 2024-08-16 26897/week @ 2024-08-23 26280/week @ 2024-08-30 22945/week @ 2024-09-06 19719/week @ 2024-09-13 25748/week @ 2024-09-20 27392/week @ 2024-09-27 26508/week @ 2024-10-04 24899/week @ 2024-10-11 25048/week @ 2024-10-18 26709/week @ 2024-10-25 27047/week @ 2024-11-01

106,735 downloads per month
Used in 146 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–38MB
~584K SLoC