This chapter does not appear in the book.
A few weeks ago, I finally received my much-anticipated Leap Motion controller, a device that grants us mere mortals the ability to interact with a computer by waving our hands and fingers. The picture on the right shows my left hand wafting around over the controller (the small metallic and black glass device on the table).
A slew of user reviews have appeared, including from The New York Times, Engadget, and TechCrunch. I tend to agree with their conclusions that the device is tricky and tiring to use. But it's early days for such an innovative idea, and the technology may be a more natural match for hand-held devices such as smartphones and tablets. It also nicely complements the Kinect sensor, with the Kinect handling whole-body tracking across meters while the Leap is fine-tuned for hand and finger tracking and gestures, accurate to millimeters.
The main thrust of this chapter is how to program with the Leap using its Java API (there are also libraries for Python, C++, C#, Objective C, and JavaScript). Free registration at the Leap Motion developer website allows you to download various goodies such as the Leap SDK, API documentation, technical overviews, and access forums (which are also archived online).
I'll describe three applications in this chapter: