asdasdasd

This commit is contained in:
Quaternions 2024-07-30 18:00:42 -07:00
parent 9ecfe26a0c
commit 9cd72d5809

View File

@ -37,7 +37,7 @@ impl MouseInterpolator{
let t0=self.queue[0].time; let t0=self.queue[0].time;
let mut iter=self.queue.iter(); let mut iter=self.queue.iter();
//find a mouse input //find a mouse input
let mouse0=None; let mut mouse0=None;
iter.take_while(|&ins|{ iter.take_while(|&ins|{
match ins.instruction{ match ins.instruction{
InputInstruction::MoveMouse(m)=>{ InputInstruction::MoveMouse(m)=>{
@ -50,6 +50,9 @@ impl MouseInterpolator{
}, },
} }
}); });
if mouse0.is_none(){
return;
}
let mut mouse1=None; let mut mouse1=None;
for ins in iter{ for ins in iter{
//fill mouse0 //fill mouse0