Move reusable mouse types to iced_core
This commit is contained in:
parent
20d79a43cc
commit
56dbd68326
10 changed files with 23 additions and 12 deletions
|
|
@ -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
3
src/mouse.rs
Normal 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};
|
||||
Loading…
Add table
Add a link
Reference in a new issue