From fe18131c7edf5a6ca8b7445aa3510831c4068ec9 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Wed, 9 Feb 2022 17:30:50 +0100 Subject: [PATCH] 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. --- src/event.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/event.rs b/src/event.rs index 23fedecb..a398d7af 100644 --- a/src/event.rs +++ b/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)] pub enum MouseEvent { /// The mouse cursor was moved @@ -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),