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

View file

@ -185,6 +185,7 @@ mod sandbox;
pub mod executor;
pub mod keyboard;
pub mod mouse;
pub mod settings;
pub mod widget;
pub mod window;
@ -208,3 +209,6 @@ pub use runtime::{
futures, Align, Background, Color, Command, Font, HorizontalAlignment,
Length, Point, Size, Subscription, Vector, VerticalAlignment,
};
#[cfg(not(target_arch = "wasm32"))]
pub use runtime::input::ButtonState;

3
src/mouse.rs Normal file
View file

@ -0,0 +1,3 @@
//! Listen and react to mouse events.
#[cfg(not(target_arch = "wasm32"))]
pub use iced_winit::input::mouse::{Button, Event, ScrollDelta};