Directory

← Back

LeapGestures

Leapmotion gestures API for Vaadin

Author

Contributors

Rating

Very basic Leapmotion gestures API for Vaadin. Currently only supports detecting circle gesture and swipe gestures: up, down laft and right. Each gesture type fires events when gesture starts are reported by the Leapmotion WebSocket API.

Sample code

public class AddontestUI extends UI {

	@Override
	protected void init(VaadinRequest request) {
		final VerticalLayout layout = new VerticalLayout();
		layout.setMargin(true);
		setContent(layout);

		LeapGestures g = LeapGestures.extend(this);
		g.addSwipeDownListener(new SwipeDownListener() {
			
			@Override
			public void onSwipeDown(SwipeDownArgs args) {
				layout.addComponent(new Label("swipe down"));
			}
		});
	}

}

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Initial release

Released
2013-10-24
Maturity
EXPERIMENTAL
License
GNU General Public License v3.0 only

Compatibility

Framework
Vaadin 7.0+
Browser
Firefox
Google Chrome
Online