Remove unused mouse click event
Since this isn't emitted anywhere, this can only lead to confusion for library consumers. They'd need to implement their own click detection with the button up and button down events.
This commit is contained in:
parent
b3712638ba
commit
e46001a448
11
src/event.rs
11
src/event.rs
|
@ -32,14 +32,6 @@ pub enum ScrollDelta {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Copy, Clone, PartialEq)]
|
|
||||||
pub struct MouseClick {
|
|
||||||
pub button: MouseButton,
|
|
||||||
pub click_count: usize,
|
|
||||||
/// The logical coordinates of the mouse position
|
|
||||||
pub position: Point,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
#[derive(Debug, Clone, Copy, PartialEq)]
|
||||||
pub enum MouseEvent {
|
pub enum MouseEvent {
|
||||||
/// The mouse cursor was moved
|
/// The mouse cursor was moved
|
||||||
|
@ -54,9 +46,6 @@ pub enum MouseEvent {
|
||||||
/// A mouse button was released.
|
/// A mouse button was released.
|
||||||
ButtonReleased(MouseButton),
|
ButtonReleased(MouseButton),
|
||||||
|
|
||||||
/// A mouse button was clicked.
|
|
||||||
Click(MouseClick),
|
|
||||||
|
|
||||||
/// The mouse wheel was scrolled.
|
/// The mouse wheel was scrolled.
|
||||||
WheelScrolled(ScrollDelta),
|
WheelScrolled(ScrollDelta),
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue