summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-04-30 05:04:45 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-04-30 05:04:45 +0200
commitbb9ccc4f62ceea08dc1ef0c6c4d3d219897e44a1 (patch)
tree5741bbfd344137f88deb8d87584cc70fb0a9f80b /src
parent137664ca88a9bf2398380fd1c04b00c62c868383 (diff)
downloadiced-bb9ccc4f62ceea08dc1ef0c6c4d3d219897e44a1.tar.gz
iced-bb9ccc4f62ceea08dc1ef0c6c4d3d219897e44a1.tar.bz2
iced-bb9ccc4f62ceea08dc1ef0c6c4d3d219897e44a1.zip
Remove inconsistent `input` module in `iced_native`
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.rs6
-rw-r--r--src/mouse.rs3
2 files changed, 2 insertions, 7 deletions
diff --git a/src/keyboard.rs b/src/keyboard.rs
index 181dd974..0b3e894d 100644
--- a/src/keyboard.rs
+++ b/src/keyboard.rs
@@ -1,6 +1,2 @@
//! Listen and react to keyboard events.
-#[cfg(not(target_arch = "wasm32"))]
-pub use iced_winit::input::keyboard::{KeyCode, ModifiersState};
-
-#[cfg(target_arch = "wasm32")]
-pub use iced_web::keyboard::{KeyCode, ModifiersState};
+pub use crate::runtime::keyboard::{Event, KeyCode, ModifiersState};
diff --git a/src/mouse.rs b/src/mouse.rs
index 8be36d37..c511399b 100644
--- a/src/mouse.rs
+++ b/src/mouse.rs
@@ -1,3 +1,2 @@
//! Listen and react to mouse events.
-#[cfg(not(target_arch = "wasm32"))]
-pub use iced_winit::input::mouse::{Button, Event, ScrollDelta};
+pub use crate::runtime::mouse::{Button, Event, ScrollDelta};