A downloadable tool for Windows

A gesture controlled mouse using the Leap Motion API for Python and PyWin32.

Instructions

  • cd to the folder.
  • run python LeapMouse.py
  • The coordinates of the palm are used to move the mouse pointer around.
  • A pinch between any finger and the thumb simulates a click.
  • If the ring finger and pinky are not extended (Like the German hand gesture for the number three), the script enters scrolling mode and tilting the palm scrolls up and down. Moving the palm front and back zooms into and out of the screen.
  • Clench the palm with the thumb to the left to grab the active window and move it around the screen.
  • Moving the hand in a circle of radius > 50 mm in clockwise/anticlockwise direction increases/decreases the master volume.
  • LeapMouse.py works only with Windows.
StatusPrototype
CategoryTool
PlatformsWindows
Authorsne9x

Download

Download
LeapMouse.zip 3 MB

Install instructions

Installation

  • Clone the repo or download the zip.
  • Make sure you have the Leap SDK installed.
  • run pip install -r "requirements.txt"

Dependencies

  • Pywin32 - Win32 API for Python
  • comtypes - Pure Python COM package

Github repo: https://github.com/Suyash458/LeapProjects

Leave a comment

Log in with itch.io to leave a comment.