bevy/crates/bevy_input/src/mouse.rs

20 lines
359 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 MouseMotionInput {
pub delta: (f64, f64),
}