From c48739029b36e4380409cdb15594e415afce6371 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 5 Sep 2019 09:59:38 +0200 Subject: Ask users to share use cases --- src/input/mouse/button.rs | 5 +++++ src/input/mouse/event.rs | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'src/input/mouse') diff --git a/src/input/mouse/button.rs b/src/input/mouse/button.rs index e552af5a..6320d701 100644 --- a/src/input/mouse/button.rs +++ b/src/input/mouse/button.rs @@ -1,4 +1,9 @@ /// The button of a mouse. +/// +/// If you are using [`winit`], consider enabling the `winit` feature to get +/// conversion implementations for free! +/// +/// [`winit`]: https://docs.rs/winit/0.20.0-alpha3/winit/ #[derive(Debug, Hash, PartialEq, Eq, Clone, Copy)] pub enum Button { /// The left mouse button. diff --git a/src/input/mouse/event.rs b/src/input/mouse/event.rs index 1f7a1547..7b68208f 100644 --- a/src/input/mouse/event.rs +++ b/src/input/mouse/event.rs @@ -2,6 +2,11 @@ use super::Button; use crate::input::ButtonState; /// A mouse event. +/// +/// _**Note:** This type is largely incomplete! If you need to track +/// additional events, feel free to [open an issue] and share your use case!_ +/// +/// [open an issue]: https://github.com/hecrj/iced/issues #[derive(Debug, Clone, Copy, PartialEq)] pub enum Event { /// The mouse cursor entered the window. -- cgit