-
-
Notifications
You must be signed in to change notification settings - Fork 16.7k
Leapmotion plugin #554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Leapmotion plugin #554
Conversation
Left, right, up, and down gestures. Optional invert for gestures.
Added timing code to limit gesture calls. Added gesture to access the overview. index.html includes the leap plugin
Changed invert to naturalSwipe Removed invert rule from index.html Ensured that left/right swipes only work with 1 hand present modified: index.html modified: plugin/leap/leap.js
When used correctly, the 1/2 second delay is uncessary and may yield undesireable results. modified: plugin/leap/leap.js
modified: css/reveal.css modified: css/reveal.min.css modified: plugin/leap/leap.js
Occasionally gestures were fired twice. This helps prevent that. modified: plugin/leap/leap.js
modified: css/reveal.min.css modified: plugin/leap/leap.js
Updated README.md to mention the leap plugin. Removed leap settings from index.html. Better variable naming in leap.js modified: README.md modified: index.html modified: plugin/leap/leap.js
Enhanced the pointer. Cleaned up the code. Added additional optional parameters. Updated documentation. modified: README.md modified: index.html modified: plugin/leap/leap.js
modified: plugin/leap/leap.js
Commented out leap plugin inclusion.
Made sure all vars are declared with the var keyword. modified: plugin/leap/leap.js
Thanks a ton for this! I don't have a device to test on but everything looks good in the diff. Will merge it in shortly. |
Merged into the dev branch https://github.com/hakimel/reveal.js/commits/dev Will make its way into master with the next release. |
Went ahead and merged this into master, didn't want to wait for dev to be merged :) |
No problem at all! It was really fun :) |
Made a small change to this, since there were so few styles in the reveal.css file I figure it'd be nice to have it all in the leap.js file. |
Yeah I suppose. I tend to prefer static styles to just be defined as CSS myself, but this works too. |
leap.js plugin in reveal has flaw call to function i think is outdated, and could not detect the leap motion on latest leap motion software upgrade, I tried to change the call to function from official https://github.com/leapmotion/leapjs and change the function and could detect swipe but not the pointer in addition any plans to get master supporting to the leap plugin.. its quite confusing as the official documentation has leap motion plugin support but the master still do not support leap plugin .. By the first first time poster, forgive me for any mistake |
Can anyone duplicate this? I am unable to duplicate it. The plugin is in master: https://github.com/hakimel/reveal.js/tree/master/plugin/leap |
Ahhh apologize nubie mistake .. your code works, i got mess up with master code , official leap.js with your fork that do not have the pointer functions.. However .. master index.html is not linked to the leap plugin, thats why i could not get it to work straight from cloning the reveal.js any plans to link index.html it to the leap motion by the way great plugin, love the leap motion plugin.. Sorry, first time poster and still learning the rope |
Leapmotion plugin
The leap motion plugin is finished.
It has a pointer which can change size based on finger position along the z-axis. It also, by default, will set the origin for the pointer (center of the screen) relative to where you initially enter the leap's detection field. This feature is optional.
Supports one hand left, right, up, and down swipe gestures with optional invert.
Supports two hands up swipe gesture to toggle the overview.
It has 8 overridable options to curtail the experience as needed.
I had a few people with varying levels of familiarity to the leap motion try it out and received positive feedback.