spacenav 0.1.0

Library for interfacing with the open source Spacenav daemon.
Documentation
  • Coverage
  • 87.5%
    14 out of 16 items documented1 out of 6 items with examples
  • Size
  • Source code size: 6.01 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 333.67 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Documentation
  • mfs/spacenav
    2 0 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • mfs

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);
    }
}