Struct spacenav::SpaceNav [] [src]

pub struct SpaceNav {
    // some fields omitted
}

Methods

impl SpaceNav
[src]

fn new() -> Result<SpaceNav>

Create SpaceNav sturct.

fn read(&mut self) -> Option<Event>

Read next event from daemon.

If operating in blocking mode this function will block until an event is available. If operating in nonblocking mode the function returns immediately and a None is returned if no event is available.

fn set_nonblocking(&mut self, nonblocking: bool) -> Result<()>

Set blocking state to nonblocking.