forked from StrafesNET/strafe-project
refactor physics enums so Mouse-NonMouse distinction is private to mouse_interpolator
This commit is contained in:
@@ -7,17 +7,13 @@ pub type Time=crate::integer::Time<TimeInner>;
|
||||
#[derive(Clone,Debug)]
|
||||
pub enum Instruction{
|
||||
Mouse(MouseInstruction),
|
||||
NonMouse(NonMouseInstruction),
|
||||
}
|
||||
impl Instruction{
|
||||
pub const IDLE:Self=Self::NonMouse(NonMouseInstruction::Misc(MiscInstruction::Idle));
|
||||
}
|
||||
#[derive(Clone,Debug)]
|
||||
pub enum NonMouseInstruction{
|
||||
SetControl(SetControlInstruction),
|
||||
Mode(ModeInstruction),
|
||||
Misc(MiscInstruction),
|
||||
}
|
||||
impl Instruction{
|
||||
pub const IDLE:Self=Self::Misc(MiscInstruction::Idle);
|
||||
}
|
||||
#[derive(Clone,Debug)]
|
||||
pub enum MouseInstruction{
|
||||
/// Replace the entire interpolation state to avoid dividing by zero when replacing twice
|
||||
|
||||
Reference in New Issue
Block a user