Remove inconsistent input module in iced_native

This commit is contained in:
Héctor Ramón Jiménez 2020-04-30 05:04:45 +02:00
parent 137664ca88
commit bb9ccc4f62
20 changed files with 27 additions and 45 deletions

View file

@ -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};

View file

@ -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};