Crate spacenav [] [src]

This crate provides an interface to the open source Spacenav daemon.

This daemon communicates with 3D mice made by 3DConnexion such as the SpaceNavigator.

The spacenavd daemon supports two protocols. An X11 protocol compatible with the proprietary daemon as well as an alternative communication protocol that does not require an X server. This crate commmunicates via the second, non X protocol. For now the X11 protocol is not implemented.

Examples

extern crate spacenav;

use spacenav::SpaceNav;

fn main() {

    let mut spcnav = SpaceNav::new().unwrap();

    loop {
        let event = spcnav.read();

        println!("{:?}", event);
    }
}

Structs

SpaceNav

Enums

Event