This commit is contained in:
Quaternions 2024-07-30 20:45:50 -07:00
parent b376c03bde
commit ead0e33546

View File

@ -52,6 +52,8 @@ fn drain_queue(physics:&mut crate::physics::PhysicsContext,iterable:impl IntoIte
}
impl MouseInterpolator{
fn handle_instruction(&mut self,physics:&mut crate::physics::PhysicsContext,ins:TimedInstruction<InputInstruction>){
//need to handle the case where mouse polling rate is less than 100hz
//also the whole thing is probably wrong lol
let is_inserting_mouse_instruction=matches!(ins.instruction,InputInstruction::MoveMouse(_));
self.queue.push_back(ins);
//We just pushed an element.