Skip to content

Commit

Permalink
Remove unused mouse click event
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
robbert-vdh committed Mar 11, 2022
1 parent 9d3ae51 commit fe18131
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
pub enum MouseEvent {
/// The mouse cursor was moved
Expand All @@ -54,9 +46,6 @@ pub enum MouseEvent {
/// A mouse button was released.
ButtonReleased(MouseButton),

/// A mouse button was clicked.
Click(MouseClick),

/// The mouse wheel was scrolled.
WheelScrolled(ScrollDelta),

Expand Down

0 comments on commit fe18131

Please sign in to comment.