Skip to content

Latest commit

 

History

History
59 lines (38 loc) · 1.86 KB

README.md

File metadata and controls

59 lines (38 loc) · 1.86 KB

Build status Alire crate License GitHub release IRC Gitter chat

evdev-ada

An Ada 2012 library to read input events and use force-feedback using Linux' evdev API.

Dependencies

In order to build the library, you need to have:

  • An Ada 2012 compiler

  • Alire and (optionally) make

Using the library

Use the library in your crates as follows:

alr with evdev

Installing the tools

A tool to print information about an input event file can be build and run with:

$ alr run --args="/dev/input/event*"

Add --read as a second argument to read current state of axes and keys, or add --ff=rumble or --ff=periodic to generate some force-feedback effects.

Alternatively, it can be build and installed with:

$ make
$ make PREFIX=~/.local install

Run evdev-ada /dev/input/event* to print information.

Contributing

Please read the contributing guidelines before opening issues or pull requests.

License

This library is distributed under the terms of the Apache License 2.0.