summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs7
-rw-r--r--src/mouse.rs3
2 files changed, 9 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 4f66cc73..c574a345 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -185,6 +185,7 @@ mod sandbox;
pub mod executor;
pub mod keyboard;
+pub mod mouse;
pub mod settings;
pub mod widget;
pub mod window;
@@ -206,5 +207,9 @@ use iced_web as runtime;
pub use runtime::{
futures, Align, Background, Color, Command, Font, HorizontalAlignment,
- Length, Point, Size, Subscription, Vector, VerticalAlignment,
+ Length, MouseCursor, Point, Rectangle, Size, Subscription, Vector,
+ VerticalAlignment,
};
+
+#[cfg(not(target_arch = "wasm32"))]
+pub use runtime::input::ButtonState;
diff --git a/src/mouse.rs b/src/mouse.rs
new file mode 100644
index 00000000..8be36d37
--- /dev/null
+++ b/src/mouse.rs
@@ -0,0 +1,3 @@
+//! Listen and react to mouse events.
+#[cfg(not(target_arch = "wasm32"))]
+pub use iced_winit::input::mouse::{Button, Event, ScrollDelta};