Enum spacenav::Event [] [src]

pub enum Event {
    ButtonPress(i32),
    ButtonRelease(i32),
    Motion {
        x: i32,
        y: i32,
        z: i32,
        rx: i32,
        ry: i32,
        rz: i32,
        period: i32,
    },
}

Variants

ButtonPress

Button press event with button number.

ButtonRelease

Button release event with button number.

Motion

Motion event.

Fields

x

Translation in the x axis.

y

Translation in the y axis.

z

Translation in the z axis.

rx

Rotation around the x axis or pitch.

ry

Rotation around the y axis or yaw.

rz

Rotation around the z axis or roll.

period

Milliseconds since the last motion event.

Trait Implementations

Derived Implementations

impl Debug for Event
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.