rename fields in MouseInstruction::ReplaceMouse

This commit is contained in:
Quaternions 2025-01-13 23:51:13 -08:00
parent 6898302fa5
commit fb8c2a619a
2 changed files with 4 additions and 4 deletions

View File

@ -19,8 +19,8 @@ pub enum Instruction{
pub enum MouseInstruction{
/// Replace the entire interpolation state to avoid dividing by zero when replacing twice
ReplaceMouse{
s0:MouseState<TimeInner>,
s1:MouseState<TimeInner>,
m0:MouseState<TimeInner>,
m1:MouseState<TimeInner>,
},
SetNextMouse(MouseState<TimeInner>),
}

View File

@ -92,8 +92,8 @@ impl MouseInterpolator{
let ins_mouse=TimedInstruction{
time:mouse_state.time,
instruction:MouseInstruction::ReplaceMouse{
s0:mouse_state,
s1:next_mouse_state.clone(),
m0:mouse_state,
m1:next_mouse_state.clone(),
},
};
return ((Some(ins_mouse),None),BufferState::Buffered(ins.time,next_mouse_state));