Skip to content

Commit

Permalink
Remove exit_on_esc
Browse files Browse the repository at this point in the history
  • Loading branch information
DJMcNab committed Jan 6, 2022
1 parent 6e63c0b commit e8e7f81
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 23 deletions.
1 change: 0 additions & 1 deletion crates/bevy_input/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ pub mod gamepad;
mod input;
pub mod keyboard;
pub mod mouse;
pub mod system;
pub mod touch;

pub use axis::*;
Expand Down
20 changes: 0 additions & 20 deletions crates/bevy_input/src/system.rs

This file was deleted.

3 changes: 2 additions & 1 deletion examples/game/alien_cake_addict.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use bevy::{
core::FixedTimestep, ecs::schedule::SystemSet, prelude::*, render::camera::CameraPlugin,
window::close_on_esc,
};
use rand::Rng;

Expand Down Expand Up @@ -33,7 +34,7 @@ fn main() {
.with_run_criteria(FixedTimestep::step(5.0))
.with_system(spawn_bonus),
)
.add_system(bevy::input::system::exit_on_esc_system)
.add_system(close_on_esc)
.run();
}

Expand Down
3 changes: 2 additions & 1 deletion examples/game/breakout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use bevy::{
core::FixedTimestep,
prelude::*,
sprite::collide_aabb::{collide, Collision},
window::close_on_esc,
};

/// An implementation of the classic game "Breakout"
Expand All @@ -20,7 +21,7 @@ fn main() {
.with_system(ball_movement_system),
)
.add_system(scoreboard_system)
.add_system(bevy::input::system::exit_on_esc_system)
.add_system(close_on_esc)
.run();
}

Expand Down

0 comments on commit e8e7f81

Please sign in to comment.