AndreasGocht / leapDriver

a small uinput driver for the LeapMotion
GNU General Public License v3.0
4 stars 0 forks source link

leapDriver

leapDriver is a small userspace driver for the Leap Motion. The driver uses the uinput interface of the Linux kernel.

leapDriver is at the moment just able to simulate relative movements (like a mouse) and no absolute ones (like a touchpad)

License

leapDriver is licensed under the GPLv3. However, please be aware that the software under external has different licenses.

Compilation

To compile leapDriver you need the Leap Motion SDK. You can download it from:

https://developer.leapmotion.com/v2

You need to install the provided 64 bit Debian package (I haven't tested with 32bit).

Next you need to put the "LeapSDK" folder under "external/"

Now please type:

  mkdir build
  cd build
  cmake ../
  make

Installation

leapDriver supports Systemd. The files should work with an Ubuntu 16.04. I haven‘t tested for other Linux distributions.

To install type

  sudo make install

The leapDriver should work now. If not, please create a ticket at guthub.

Run

If you installed the driver with "make install" this is not necessary.

  sudo chmod a+rw /dev/uinput
  sudo leapd &
  ./leapdriver -c ../leap_driver_config.json

How to use the driver

Please place the Leap Motion in fornt of you. Now:

How to modify the behaviour

If you installed the leapDriver, you need to modify ´/etc/leap_driver_config.json´. Otherwise you need to modify the json you pass to leapDriver.

{
    "mouse_move_multipyer":3,
    "mouse_scroll_multipyer":0.75,
    "mouse_move_smooth_value":5,
    "mouse_scroll_smooth_value":3,
    "mouse_move_threashold":20,
    "mouse_click_prepare_value":-40,
    "mouse_click_value":-50,
    "mouse_click_release_value":-40,
    "mouse_wheel_thresold":-40,
    "vol_up_thr":30
}

Questions, Feadback and Bugs

Please be aware that this is a spare time project. Therefore, it might happen that I decide to put this project aside, not implement feature requests or not to fix bugs. However, feedback is still welcome.

If you do have any questions, feedback or a bug, pleas fill in a request on github, or send a mail to:

andreas . gocht + leapDriver [at] gmail.com