Crates.io | spacenav |
lib.rs | spacenav |
version | 0.1.0 |
source | src |
created_at | 2016-07-22 12:39:13.879201 |
updated_at | 2016-07-22 12:39:13.879201 |
description | Library for interfacing with the open source Spacenav daemon. |
homepage | https://github.com/mfs/spacenav |
repository | https://github.com/mfs/spacenav |
max_upload_size | |
id | 5748 |
size | 6,014 |
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.
[dependencies]
spacenav = "*"
extern crate spacenav;
use spacenav::SpaceNav;
fn main() {
let mut spcnav = SpaceNav::new().unwrap();
loop {
let event = spcnav.read();
println!("{:?}", event);
}
}