mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
Make bevy_window and bevy_input events serializable (#6180)
Closes #6021
This commit is contained in:
parent
37860a09de
commit
087f1c66aa
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue