hybridgroup/cylon-leapmotion

View on GitHub
examples/hand_position/hand_position.js

Summary

Maintainability
A
50 mins
Test Coverage
"use strict";

var Cylon = require("cylon");

Cylon.robot({
  connections: {
    leapmotion: { adaptor: "leapmotion" }
  },

  devices: {
    leapmotion: { driver: "leapmotion" }
  },

  work: function(my) {
    my.leapmotion.on("hand", function(hand) {
      console.log(hand.palmPosition.join(","));
    });
  }
}).start();