User Tools

Site Tools


getting_started:tutorials:hal2

This is an old revision of the document!


Reading from a Mouse

In the EEROS library you will find a directory with examples. Open a shell in the build directory of your EEROS library and run examples/controlsystem/mouseTest. This examples reads four axis of a mouse together with three buttons and outputs the results periodically.
In order to read from the proper mouse events you can install and run the evtest program.

$ sudo apt-get install evtest
$ sudo evtest

This programm will list all connected devices together with the associated event number. Please adapt the program accordingly. It might be necessary to run it with root priveledges.

getting_started/tutorials/hal2.1492875568.txt.gz · Last modified: 2017/04/22 17:39 by graf