Skip to content

Commit

Permalink
Format, bump version number
Browse files Browse the repository at this point in the history
  • Loading branch information
sburris0 committed Feb 10, 2021
1 parent 973fe22 commit 6e0c355
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bevy_flycam"
version = "0.2.1"
version = "0.3.0"
authors = ["Spencer Burris <sburris@posteo.net>"]
edition = "2018"
license = "ISC"
Expand Down
6 changes: 1 addition & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,17 +109,13 @@ fn player_look(
}
}

fn cursor_grab(
keys: Res<Input<KeyCode>>,
mut windows: ResMut<Windows>,
) {
fn cursor_grab(keys: Res<Input<KeyCode>>, mut windows: ResMut<Windows>) {
let window = windows.get_primary_mut().unwrap();
if keys.just_pressed(KeyCode::Escape) {
toggle_grab_cursor(window);
}
}


/// Contains everything needed to add first-person fly camera behavior to your game
pub struct PlayerPlugin;
impl Plugin for PlayerPlugin {
Expand Down

0 comments on commit 6e0c355

Please # to comment.