summaryrefslogtreecommitdiff
path: root/engine/src/input.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-09-07 23:14:00 +0200
committerHampusM <hampus@hampusmat.com>2024-09-07 23:14:00 +0200
commit3711d559f8df7eb7598cc2b828455831eff44a56 (patch)
tree9ffb022499118ef916816ece3ceda0f3754a1da6 /engine/src/input.rs
parent5876d106044a532541d2dc70c5515838e35b0df2 (diff)
fix(engine): reexport Key & KeyState in input module
Diffstat (limited to 'engine/src/input.rs')
-rw-r--r--engine/src/input.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/engine/src/input.rs b/engine/src/input.rs
index 7bd664f..c8ba16a 100644
--- a/engine/src/input.rs
+++ b/engine/src/input.rs
@@ -6,7 +6,14 @@ use ecs::Sole;
use crate::event::{PreUpdate as PreUpdateEvent, Start as StartEvent};
use crate::vector::Vec2;
-use crate::window::{Key, KeyState, Window};
+use crate::window::Window;
+
+mod reexports
+{
+ pub use crate::window::{Key, KeyState};
+}
+
+pub use reexports::*;
#[derive(Debug, Clone, Default, Sole)]
pub struct Keys