2020-04-05 06:42:39 +00:00
|
|
|
use super::keyboard::ElementState;
|
2020-06-04 06:22:32 +00:00
|
|
|
use glam::Vec2;
|
2020-04-05 06:42:39 +00:00
|
|
|
|
|
|
|
#[derive(Debug, Clone)]
|
2020-04-05 07:32:53 +00:00
|
|
|
pub struct MouseButtonInput {
|
2020-04-05 06:42:39 +00:00
|
|
|
pub button: MouseButton,
|
|
|
|
pub state: ElementState,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Debug, Hash, PartialEq, Eq, Clone, Copy)]
|
|
|
|
pub enum MouseButton {
|
|
|
|
Left,
|
|
|
|
Right,
|
|
|
|
Middle,
|
|
|
|
Other(u8),
|
2020-04-05 07:32:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Debug, Clone)]
|
2020-04-30 20:52:11 +00:00
|
|
|
pub struct MouseMotionInput {
|
2020-06-04 06:22:32 +00:00
|
|
|
pub delta: Vec2,
|
|
|
|
}
|