#gamepad #gamepad-input #input #joystick #input-event

gilrs-core

Minimal event based abstraction for working with gamepads

25 releases

0.5.11 Mar 6, 2024
0.5.10 Dec 17, 2023
0.5.9 Nov 13, 2023
0.5.6 Jun 24, 2023
0.1.0 Oct 30, 2018

#1743 in Game dev

Download history 12771/week @ 2023-12-23 13036/week @ 2023-12-30 16463/week @ 2024-01-06 19382/week @ 2024-01-13 17542/week @ 2024-01-20 16249/week @ 2024-01-27 15490/week @ 2024-02-03 17783/week @ 2024-02-10 24268/week @ 2024-02-17 21550/week @ 2024-02-24 23572/week @ 2024-03-02 22216/week @ 2024-03-09 21760/week @ 2024-03-16 23616/week @ 2024-03-23 23972/week @ 2024-03-30 16398/week @ 2024-04-06

87,730 downloads per month
Used in 129 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 hight 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 mean that user have 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.2–43MB
~618K SLoC