mirror of
https://github.com/bevyengine/bevy
synced 2024-12-21 02:23:08 +00:00
20 lines
No EOL
353 B
Rust
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),
|
|
} |