diff --git a/src/navigation.rs b/src/navigation.rs index 6620c8e..1473369 100644 --- a/src/navigation.rs +++ b/src/navigation.rs @@ -98,7 +98,6 @@ fn movement_controls( if let Some(pair) = actions.clamped_axis_pair(NavigationAction::Move) { cleanup = true; let direction = pair.xy(); - let strength = direction.length(); let forward_backward_movement_factor = if direction.x > 0. { config.forward_movement_factor } else if direction.x < 0. { @@ -382,7 +381,7 @@ where .register_type::() .register_type::() .add_plugin(InputManagerPlugin::::default()) - .add_system_to_stage(CoreStage::PostUpdate, update_direction) + .add_system_to_stage(CoreStage::PreUpdate, update_direction) .add_system_to_stage(CoreStage::PostUpdate, remove_direction) .add_system(tick_snap_timers) .add_system(speak_direction.chain(error_handler))