1 2 3 4 5 6 7 8 9 10 11 12
/// Struct which holds information about whether the window is focused. /// Written to by MouseFocusUpdateSystem #[derive(Default)] pub struct WindowFocus { pub is_focused: bool, } impl WindowFocus { pub fn new() -> WindowFocus { WindowFocus { is_focused: true } } }