diff --git a/src/trekstor.rs b/src/trekstor.rs index 0194478..eb2b383 100644 --- a/src/trekstor.rs +++ b/src/trekstor.rs @@ -36,8 +36,8 @@ impl Trekstor { pub fn update(&mut self, update: UpdateFn) { loop { - self.input.next_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;