rename fields in MouseInstruction::ReplaceMouse
This commit is contained in:
parent
6898302fa5
commit
fb8c2a619a
@ -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>),
|
||||
}
|
||||
|
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user