How to use the leapjs/leap-0.6.4.js.loop function in leapjs

To help you get started, we’ve selected a few leapjs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mimic-sussex / sema / src / interfaces / leapMotion.js View on Github external
constructor() {
    
    this.options = {
      host: '127.0.0.1',
      port: 6437,
      enableGestures: false,
      background: false,
      optimizeHMD: false,
      frameEventName: 'animationFrame',
      useAllPlugins: false
    }


    Leap.loop(function(frame){
      console.log(frame.hands.length);
    });

    // this.controller = new Leap.Controller();
    // this.controller = new Leap.Controller(options);
    // controller.connect();
  }

leapjs

JavaScript client for the Leap Motion Controller

Apache-2.0
Latest version published 3 years ago

Package Health Score

52 / 100
Full package analysis