spacenav

Crates.iospacenav
lib.rsspacenav
version0.1.0
sourcesrc
created_at2016-07-22 12:39:13.879201
updated_at2016-07-22 12:39:13.879201
descriptionLibrary for interfacing with the open source Spacenav daemon.
homepagehttps://github.com/mfs/spacenav
repositoryhttps://github.com/mfs/spacenav
max_upload_size
id5748
size6,014
Mike Sampson (mfs)

documentation

https://mfs.github.io/spacenav/spacenav/index.html

README

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 communicates via the second, non X11 protocol. For now the X11 protocol is not implemented.

Installation

[dependencies]
spacenav = "*"

Example

extern crate spacenav;

use spacenav::SpaceNav;

fn main() {

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

    loop {
        let event = spcnav.read();

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

cargo fmt