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)),