Use the Leap Motion as a mouse device.
- Leap Motion SDK (https://www.leapmotion.com/developers)
- pymouse from PyUserInput (https://github.com/SavinaRoja/PyUserInput)
- Python ≥ v2.7 (http://python.org/download/)
- Connect your Leap Motion device
- Run 'leapd' (from the Leap Motion SDK)
- Run 'LeaPointer.py' (use --help to see available options)
- Move your hand above the Leap Motion device to move the mouse pointer
- The pointer speed is inversely proportional to the number of fingers extended. Extend one finger to move quickly, and all 5 fingers to do delicate movements. Extending zero fingers disables mouse movement.
- Do a key tap motion with a finger to generate a mouse click
Should in theory run on all systems supported by the Leap Motion SDK and pymouse (Windows, MacOS and Linux).
Tested on:
- Arch Linux, Python v2.7.5, Linux 3.10.2-1-ARCH, Leap Motion SDK v0.8.0 (build 5300)
See the LICENSE file
Johan Herland (johan@herland.net), based on the Leap Motion SDK documentation