moved some things around.

Signed-off-by: Sienna Meridian Satterwhite <sienna@r3t.io>
This commit is contained in:
2025-12-14 21:25:52 +00:00
parent 5493faa1f1
commit 70735a33a5
16 changed files with 861 additions and 298 deletions

View File

@@ -3,7 +3,7 @@
//! This module creates and manages the main window and event loop.
//! It converts winit events to InputEvents and provides them to the engine.
use super::winit_bridge;
use super::input;
use winit::application::ApplicationHandler;
use winit::event::WindowEvent;
use winit::event_loop::{ActiveEventLoop, ControlFlow, EventLoop};
@@ -46,7 +46,7 @@ impl ApplicationHandler for DesktopApp {
event: WindowEvent,
) {
// Forward all input events to the bridge first
winit_bridge::push_window_event(&event);
input::push_window_event(&event);
match event {
WindowEvent::CloseRequested => {