Make bevy_window and bevy_input events serializable (#6180)

Closes #6021
This commit is contained in:
Emerson MX 2022-10-06 13:14:23 +00:00
parent 37860a09de
commit 087f1c66aa

View file

@ -105,6 +105,7 @@ pub struct ReceivedCharacter {
/// An event that indicates a window has received or lost focus. /// An event that indicates a window has received or lost focus.
#[derive(Debug, Clone, PartialEq, Eq)] #[derive(Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))]
pub struct WindowFocused { pub struct WindowFocused {
pub id: WindowId, pub id: WindowId,
pub focused: bool, pub focused: bool,