@p4d/leapmotion
v1.9.0
Published
P4D Leap Motion library
Downloads
12
Readme
P4D Leap motion library
Installation
### NPM
npm install --save @p4d/leapmotion
HTML include
<script type="text/javascript" src="dist/leapmotion.p4d.js"></script>
Usage: events
- hand id: hand id hand: hand struct
- handFound
- handLost
- grab id: hand id type: type of grab event, start/ongoing/end value: grabStrength value (0 to 1)
- movement id: hand id movement: x,y,z relative movement with respect to last frame. x: left/right; y: up/down, z: in/out
- screen id: hand id screen: x,y,z screen coordinates in pixels.
- zoom
- tap