useserde::{Deserialize, Serialize};/// Struct which holds information about whether the window is focused.
/// Written to by MouseFocusUpdateSystem
#[derive(Debug, Clone, Copy, Default, Serialize, Deserialize)]pubstructWindowFocus{/// If true then the window is actively focused.
pubis_focused:bool,
}implWindowFocus{/// Builds a new WindowFocus resource.
pubfnnew()-> WindowFocus{
WindowFocus { is_focused:true}}}/// Resource indicating if the mouse should be grabbed and hidden by the CursorHideSystem
/// when the window is focused.
#[derive(Debug, Clone, Copy, Serialize, Deserialize)]pubstructHideCursor{/// If true this system will take control of the cursor.
pubhide:bool,
}implDefault forHideCursor{fndefault()->Self{
HideCursor { hide:true}}}