Move reusable mouse types to iced_core

This commit is contained in:
Héctor Ramón Jiménez 2020-04-28 03:11:01 +02:00
parent 20d79a43cc
commit 56dbd68326
10 changed files with 23 additions and 12 deletions

15
core/src/mouse/button.rs Normal file
View file

@ -0,0 +1,15 @@
/// The button of a mouse.
#[derive(Debug, Hash, PartialEq, Eq, Clone, Copy)]
pub enum Button {
/// The left mouse button.
Left,
/// The right mouse button.
Right,
/// The middle (wheel) button.
Middle,
/// Some other button.
Other(u8),
}