Last active
January 2, 2016 11:59
-
-
Save cdbkr/8300046 to your computer and use it in GitHub Desktop.
Initialize LeapMotion js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var controller = new Leap.Controller({enableGestures:true}); | |
controller.on('connect', function() { | |
console.log("Successfully connected."); | |
}); | |
controller.on('deviceConnected', function() { | |
console.log("A Leap device has been connected."); | |
}); | |
controller.on('deviceDisconnected', function() { | |
console.log("A Leap device has been disconnected."); | |
}); | |
controller.on('frame', function(frame){ | |
//on frame callback | |
}); | |
controller.connect(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment