bevy/src/input/mouse.rs

15 lines
268 B
Rust
Raw Normal View History

2020-04-05 06:42:39 +00:00
use super::keyboard::ElementState;
#[derive(Debug, Clone)]
pub struct MouseInput {
pub button: MouseButton,
pub state: ElementState,
}
#[derive(Debug, Hash, PartialEq, Eq, Clone, Copy)]
pub enum MouseButton {
Left,
Right,
Middle,
Other(u8),
}