fn toggle_override(input: Res<Input<KeyCode>>, mut windows: ResMut<Windows>) {
    let window = windows.get_primary_mut().unwrap();
    if input.just_pressed(KeyCode::Return) {
        window.set_scale_factor_override(window.scale_factor_override().xor(Some(1.)));
    }
}
/// This system toggles scale factor overrides when enter is pressed
This system toggles scale factor overrides when enter is pressed
This system toggles scale factor overrides when enter is pressed
fn toggle_override(input: Res<Input<KeyCode>>, mut windows: ResMut<Windows>) {
    let window = windows.get_primary_mut().unwrap();
    if input.just_pressed(KeyCode::Return) {
        window.set_scale_factor_override(window.scale_factor_override().xor(Some(1.)));
    }
}
fn toggle_override ( input : Res < Input < KeyCode > > , mut windows : ResMut < Windows > ) { let window = windows . get_primary_mut ( ) . unwrap ( ) ; if input . just_pressed ( KeyCode :: Return ) { window . set_scale_factor_override ( window . scale_factor_override ( ) . xor ( Some ( 1. ) ) ) ; } }
This system toggles scale factor overrides when enter is pressed
This system toggles scale factor overrides when enter is pressed
input
Res<Input<KeyCode>>
windows
ResMut<Windows>
input
Res<Input<KeyCode>>
windows
ResMut<Windows>