reveal-leap-motion
Version:
A plugin which allows you to use your Leap Motion device to control basic navigation of your Reveal.js presentation
12 lines (9 loc) • 339 B
JavaScript
import Leap from 'leapjs';
import gesturing from './gesturing';
import pointing from './pointing';
const controllerOptions = { enableGestures: true };
// https://developer.leapmotion.com/documentation/javascript/api/Leap_Classes.html#Leap.loop
Leap.loop(controllerOptions, (frame) => {
pointing(frame.fingers);
gesturing(frame);
});