Skip to content

Commit

Permalink
Make bevy_window and bevy_input events serializable (#6180)
Browse files Browse the repository at this point in the history
Closes #6021
  • Loading branch information
emersonmx committed Oct 6, 2022
1 parent 37860a0 commit 087f1c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/bevy_window/src/event.rs
Expand Up @@ -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,
Expand Down

0 comments on commit 087f1c6

Please sign in to comment.