idle is special

This commit is contained in:
2025-01-16 00:09:43 -08:00
parent 52f7de809d
commit d2002383cb
5 changed files with 15 additions and 9 deletions

View File

@@ -10,9 +10,11 @@ pub enum Instruction{
SetControl(SetControlInstruction),
Mode(ModeInstruction),
Misc(MiscInstruction),
/// Idle: there were no input events, but the simulation is safe to advance to this timestep
Idle,
}
impl Instruction{
pub const IDLE:Self=Self::Misc(MiscInstruction::Idle);
pub const IDLE:Self=Self::Idle;
}
#[derive(Clone,Debug)]
pub enum MouseInstruction{
@@ -47,8 +49,6 @@ pub enum ModeInstruction{
}
#[derive(Clone,Debug)]
pub enum MiscInstruction{
/// Idle: there were no input events, but the simulation is safe to advance to this timestep
Idle,
PracticeFly,
SetSensitivity(crate::integer::Ratio64Vec2),
}