From 1ad83889be32b1bdb746e751aa620fad85b864b0 Mon Sep 17 00:00:00 2001 From: FabianLars Date: Wed, 26 Feb 2020 21:58:34 +0100 Subject: really small cleanup --- native/src/input/mouse.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'native/src/input/mouse.rs') diff --git a/native/src/input/mouse.rs b/native/src/input/mouse.rs index eaac52f3..ca3daeb1 100644 --- a/native/src/input/mouse.rs +++ b/native/src/input/mouse.rs @@ -36,8 +36,7 @@ impl Default for State { impl State { /// processes left click to check for double/triple clicks - /// return amount of repetitive mouse clicks - /// (1 -> double click, 2 -> triple click) + /// return amount of repetitive mouse clicks as enum pub fn update(&mut self, position: Point) -> Interaction { self.last_click = match self.last_click { None => Some(Interaction::Click(position)), -- cgit