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(i32)
Button press event with button number.
ButtonRelease(i32)
Button release event with button number.
Motion
Motion event.
Fields of Motion
x: i32 | Translation in the |
y: i32 | Translation in the |
z: i32 | Translation in the |
rx: i32 | Rotation around the |
ry: i32 | Rotation around the |
rz: i32 | Rotation around the |
period: i32 | Milliseconds since the last motion event. |