Jitter is a general purpose Java library for the Leap Motion Controller.
Its primary goal is to provide a user friendly front-end to the technical Leap details.
Its secondary goal is to buffer input from the Leap to throttle FPS down to a suitable level for an application.
Jitter is released under the LGPL with the hope that it'll be a useful community resource and project :-)
The MovingBlocks team behind Terasology is hosting a Jenkins build for Jitter with the latest jar download here
For a sample implementation see the Terasology prototype thread - if you use Jitter in a project please let us know so we can link to you!
Quick example for buffered Circle Gestures:
for (CircleGesture circleGesture : jitterBuffer.nextCircleBatch(2)) {
if (JitterSystem.isClockwise(circleGesture)) {
System.out.println("Processing a clockwise circle gesture");
} else {
System.out.println("Processing a counter-clockwise circle gesture");
}
}
This fetches all pending circle gestures that have gone at least two entire trips around the circle then does different stuff depending on clockwiseness.