leaprs 0.2.2

Safe wrapper for the LeapC Ultraleap (Leap Motion) hand tracking device API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use leaprs::*;

fn main() {
    let mut c = Connection::create(ConnectionConfig::default()).unwrap();
    c.open().unwrap();
    loop {
        if let Ok(msg) = c.poll(1000) {
            match msg.event() {
                EventRef::Tracking(e) => println!("{} hand(s)", e.hands().len()),
                _ => {}
            }
        }
    }
}