Explorar el Código

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

Ghastrod hace 1 año
padre
commit
eccd57470e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;