summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-03-17 07:28:28 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-03-17 07:30:05 +0100
commit05beb878527b4d4e3141ca5ba09337d6ada858be (patch)
treed95ab2be4be002618eb054c61007b2ab661cd164 /core
parent1cd1582506810255394d2f9019597e9252bd8daa (diff)
downloadiced-05beb878527b4d4e3141ca5ba09337d6ada858be.tar.gz
iced-05beb878527b4d4e3141ca5ba09337d6ada858be.tar.bz2
iced-05beb878527b4d4e3141ca5ba09337d6ada858be.zip
Move common keyboard types to `iced_core`
Also expose them in `iced` through `iced_native` and `iced_web`.
Diffstat (limited to '')
-rw-r--r--core/src/keyboard.rs6
-rw-r--r--core/src/keyboard/key_code.rs (renamed from native/src/input/keyboard/key_code.rs)0
-rw-r--r--core/src/keyboard/modifiers_state.rs (renamed from native/src/input/keyboard/modifiers_state.rs)0
-rw-r--r--core/src/lib.rs1
4 files changed, 7 insertions, 0 deletions
diff --git a/core/src/keyboard.rs b/core/src/keyboard.rs
new file mode 100644
index 00000000..d98b2989
--- /dev/null
+++ b/core/src/keyboard.rs
@@ -0,0 +1,6 @@
+//! Reuse basic keyboard types.
+mod key_code;
+mod modifiers_state;
+
+pub use key_code::KeyCode;
+pub use modifiers_state::ModifiersState;
diff --git a/native/src/input/keyboard/key_code.rs b/core/src/keyboard/key_code.rs
index 26020a57..26020a57 100644
--- a/native/src/input/keyboard/key_code.rs
+++ b/core/src/keyboard/key_code.rs
diff --git a/native/src/input/keyboard/modifiers_state.rs b/core/src/keyboard/modifiers_state.rs
index 3058c065..3058c065 100644
--- a/native/src/input/keyboard/modifiers_state.rs
+++ b/core/src/keyboard/modifiers_state.rs
diff --git a/core/src/lib.rs b/core/src/lib.rs
index ea5e8b43..c2887a0b 100644
--- a/core/src/lib.rs
+++ b/core/src/lib.rs
@@ -14,6 +14,7 @@
#![deny(unused_results)]
#![forbid(unsafe_code)]
#![forbid(rust_2018_idioms)]
+pub mod keyboard;
mod align;
mod background;