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