bevy/src/input/mouse.rs
Carter Anderson 6d53100ff3 mouse motion
2020-04-05 00:32:53 -07:00

20 lines
No EOL
353 B
Rust

use super::keyboard::ElementState;
#[derive(Debug, Clone)]
pub struct MouseButtonInput {
pub button: MouseButton,
pub state: ElementState,
}
#[derive(Debug, Hash, PartialEq, Eq, Clone, Copy)]
pub enum MouseButton {
Left,
Right,
Middle,
Other(u8),
}
#[derive(Debug, Clone)]
pub struct MouseMotion {
pub delta: (f64, f64),
}