From 087f1c66aaf652614c61fc912867f2225f07fe9f Mon Sep 17 00:00:00 2001 From: Emerson MX Date: Thu, 6 Oct 2022 13:14:23 +0000 Subject: [PATCH] Make bevy_window and bevy_input events serializable (#6180) Closes #6021 --- crates/bevy_window/src/event.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/bevy_window/src/event.rs b/crates/bevy_window/src/event.rs index a432e559c2..5f97b1ac41 100644 --- a/crates/bevy_window/src/event.rs +++ b/crates/bevy_window/src/event.rs @@ -105,6 +105,7 @@ pub struct ReceivedCharacter { /// An event that indicates a window has received or lost focus. #[derive(Debug, Clone, PartialEq, Eq)] +#[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))] pub struct WindowFocused { pub id: WindowId, pub focused: bool,