From 3711d559f8df7eb7598cc2b828455831eff44a56 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 7 Sep 2024 23:14:00 +0200 Subject: fix(engine): reexport Key & KeyState in input module --- engine/src/input.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-18-g5258