From af478bce2808228f5d80720a21ec58fb74d7fd41 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 5 Aug 2024 17:13:12 -0700 Subject: [PATCH] the mistake --- src/physics_worker.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/physics_worker.rs b/src/physics_worker.rs index 33cf270..34375a8 100644 --- a/src/physics_worker.rs +++ b/src/physics_worker.rs @@ -93,14 +93,14 @@ impl MouseInterpolator<'_>{ /// returns should_empty_queue /// may or may not mutate internal state XD! fn map_instruction(&mut self,ins:&TimedInstruction)->bool{ - let mut update_mouse_blocking=false; + let mut update_mouse_blocking=true; match &ins.instruction{ Instruction::Input(input_instruction)=>match input_instruction{ &InputInstruction::MoveMouse(m)=>{ if !self.timer.is_paused(){ self.push_mouse_instruction(ins,m); } - update_mouse_blocking=true; + update_mouse_blocking=false; }, &InputInstruction::MoveForward(s)=>self.push(ins.time,PhysicsInputInstruction::SetMoveForward(s)), &InputInstruction::MoveLeft(s)=>self.push(ins.time,PhysicsInputInstruction::SetMoveLeft(s)),