From 95e8a434c55cc2c425827b08a856ca2d3a18575b Mon Sep 17 00:00:00 2001 From: Avii Date: Thu, 6 Aug 2026 10:17:11 +0200 Subject: [PATCH] 1786004231 --- src/trekstor.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/trekstor.rs b/src/trekstor.rs index cdca309..373531e 100644 --- a/src/trekstor.rs +++ b/src/trekstor.rs @@ -36,8 +36,7 @@ impl Trekstor { pub fn update(&mut self, update: UpdateFn) { loop { - self.input.handle_event(); - + self.input.next_loop(); self.last_time = self.current_time; self.current_time = Instant::now(); let mut dt = self.current_time - self.last_time; @@ -48,7 +47,7 @@ impl Trekstor { while self.accumulator > self.update_timestep { println!("Frame"); - self.input.next_loop(); + self.input.handle_event(); if !update(&mut self.screen, &self.input) { return;