slow scan

This commit is contained in:
StephenAdamson
2024-12-20 23:00:26 +00:00
parent 1d292d080b
commit 7da420a66e
+2 -2
View File
@@ -72,12 +72,12 @@ pub fn camera_z_movement(
mut camera_moved: ResMut<CameraMoved>,
) {
camera_moved.0 = false;
if keyboard_input.pressed(KeyCode::ShiftLeft) {
if keyboard_input.just_pressed(KeyCode::ShiftLeft) {
z_index.0 -= 1.0;
z_index.0 = z_index.0.clamp(-149.0, 5.0);
camera_moved.0 = true;
}
if keyboard_input.pressed(KeyCode::ShiftRight) {
if keyboard_input.just_pressed(KeyCode::ShiftRight) {
z_index.0 += 1.0;
z_index.0 = z_index.0.clamp(-149.0, 5.0);
camera_moved.0 = true;