Skip to content

Commit

Permalink
Fix advanced example controls toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
Plonq committed Apr 7, 2023
1 parent 0edc66a commit 97b32a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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_panorbit_camera"
version = "0.1.0"
version = "0.1.1"
authors = ["Plonq"]
edition = "2021"
description = "A basic pan and orbit camera in Bevy"
Expand Down
2 changes: 1 addition & 1 deletion examples/advanced.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ fn toggle_camera_controls_system(
key_input: Res<Input<KeyCode>>,
mut pan_orbit_query: Query<&mut PanOrbitCamera>,
) {
if key_input.pressed(KeyCode::T) {
if key_input.just_pressed(KeyCode::T) {
for mut pan_orbit in pan_orbit_query.iter_mut() {
pan_orbit.enabled = !pan_orbit.enabled;
}
Expand Down

0 comments on commit 97b32a8

Please sign in to comment.