From 2706b6468805d1e268bbc9f668cd5dd05cd34827 Mon Sep 17 00:00:00 2001 From: Alexander Medvedev <71594357+Snowiiii@users.noreply.github.com> Date: Sun, 16 Jun 2024 13:54:04 +0200 Subject: [PATCH] Remove some debug stuff --- .../vent-runtime/src/render/camera/camera_controller3d.rs | 1 - crates/vent-window/src/platform/wayland/mod.rs | 6 ------ 2 files changed, 7 deletions(-) diff --git a/crates/vent-runtime/src/render/camera/camera_controller3d.rs b/crates/vent-runtime/src/render/camera/camera_controller3d.rs index c6ec6b3..22d83b2 100644 --- a/crates/vent-runtime/src/render/camera/camera_controller3d.rs +++ b/crates/vent-runtime/src/render/camera/camera_controller3d.rs @@ -29,7 +29,6 @@ impl CameraController3D { state: keyboard::KeyState, delta_time: f32, ) -> bool { - dbg!("Camera con: {}", &key); log::info!("{}", camera.position); if state == keyboard::KeyState::Pressed { let (sin_pitch, cos_pitch) = camera.rotation.x.sin_cos(); diff --git a/crates/vent-window/src/platform/wayland/mod.rs b/crates/vent-window/src/platform/wayland/mod.rs index 3864634..bdc29e5 100644 --- a/crates/vent-window/src/platform/wayland/mod.rs +++ b/crates/vent-window/src/platform/wayland/mod.rs @@ -148,10 +148,6 @@ impl Dispatch for State { } WEnum::Unknown(u) => log::error!("Invalid key state {}", u), } - if key == 1 { - // ESC key - state.running = false; - } } else if let wl_keyboard::Event::Keymap { format, fd, size } = event { match format { WEnum::Value(format) => match format { @@ -473,8 +469,6 @@ impl PlatformWindow { let (globals, event_queue) = registry_queue_init::(&conn).unwrap(); let qhandle = event_queue.handle(); - dbg!(&globals.contents()); - let wm_base: xdg_wm_base::XdgWmBase = globals.bind(&event_queue.handle(), 1..=6, ()).unwrap(); state.wm_base = Some(wm_base);