jquery-leapmotion
jquery-leapmotion is a simple jQuery plugin that allows you to add custom event handler for the Leap Motion.
Setup
Include the jQuery library (version 1.8.3 or newer), leapjs (version 0.2.0) and jquery-leapmotion plugin files in your webpage (preferably at the bottom of the page, before the closing BODY tag):
Events
This plugin add custom events to the window object. If you want to use these events, please place the code like below.
Device Events
- Connect
- deviceConnected
- deviceDisconnected
- focus
- blur
Frame Events
- pointables
- pointablesout
- hands
- handsout
- fingers
- fingersout
- tools
- toolsout
Gesture Events
- gesture
- circle
- circlestart
- circleupdate
- circlestop
- circleright
- circleleft
- swipe
- swipestart
- swipeupdate
- swipestop
- swipeleft
- swiperight
- swipetop
- swipebottom
- keytap
- keytapstart
- keytapupdate
- keytapstop
- screentap
- screentapstart
- screentapupdate
- screentapstop
Changelog
Version 0.1.0
- First release