#gamepad #joystick #input

gilrs-core

Minimal event based abstraction for working with gamepads

4 releases

0.2.2 Apr 6, 2019
0.2.1 Feb 25, 2019
0.2.0 Feb 21, 2019
0.1.0 Oct 30, 2018

#94 in Game development

Download history 36/week @ 2018-12-22 2/week @ 2018-12-29 10/week @ 2019-01-05 5/week @ 2019-01-12 4/week @ 2019-01-19 4/week @ 2019-01-26 11/week @ 2019-02-02 2/week @ 2019-02-09 20/week @ 2019-02-16 145/week @ 2019-02-23 177/week @ 2019-03-02 65/week @ 2019-03-09 202/week @ 2019-03-16 139/week @ 2019-03-23 153/week @ 2019-03-30

316 downloads per month
Used in 3 crates (2 directly)

Apache-2.0/MIT

141KB
4K 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

~1.5MB
~24K SLoC