slow scan
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user