Skip to content

Commit e46001a

Browse files
committed
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.
1 parent b371263 commit e46001a

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

src/event.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,6 @@ pub enum ScrollDelta {
3232
},
3333
}
3434

35-
#[derive(Debug, Copy, Clone, PartialEq)]
36-
pub struct MouseClick {
37-
pub button: MouseButton,
38-
pub click_count: usize,
39-
/// The logical coordinates of the mouse position
40-
pub position: Point,
41-
}
42-
4335
#[derive(Debug, Clone, Copy, PartialEq)]
4436
pub enum MouseEvent {
4537
/// The mouse cursor was moved
@@ -54,9 +46,6 @@ pub enum MouseEvent {
5446
/// A mouse button was released.
5547
ButtonReleased(MouseButton),
5648

57-
/// A mouse button was clicked.
58-
Click(MouseClick),
59-
6049
/// The mouse wheel was scrolled.
6150
WheelScrolled(ScrollDelta),
6251

0 commit comments

Comments
 (0)