Преглед изворни кода

Print "W pressed!" when the W key is pressed

Ghastrod пре 1 година
родитељ
комит
eccd57470e
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/controller.rs

+ 1 - 1
src/controller.rs

@@ -34,7 +34,7 @@ impl CameraController{
                         winit::keyboard::PhysicalKey::Code(key_code) => {
                             match key_code {
                                 KeyCode::KeyW => {
-                                    //println!("W pressed!");
+                                    println!("W pressed!");
                                     self.is_forward_pressed = is_pressed;
                                     // Add logic for handling W press
                                     return true;