An Ada 2012 library to read input events and use force-feedback using Linux' evdev API.
In order to build the library, you need to have:
-
An Ada 2012 compiler
-
Alire and (optionally)
make
Use the library in your crates as follows:
alr with evdev
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.
Please read the contributing guidelines before opening issues or pull requests.
This library is distributed under the terms of the Apache License 2.0.