diff --git a/src/plugin.rs b/src/plugin.rs index 3b8c060b..858ee47e 100644 --- a/src/plugin.rs +++ b/src/plugin.rs @@ -50,7 +50,7 @@ use bevy::ui::UiSystem; /// - [`tick_action_state`](crate::systems::tick_action_state), which resets the `pressed` and `just_pressed` fields of the [`ActionState`] each frame /// - [`update_action_state`](crate::systems::update_action_state), which collects [`Input`](bevy::input::Input) resources to update the [`ActionState`] /// - [`update_action_state_from_interaction`](crate::systems::update_action_state_from_interaction), for triggering actions from buttons -/// - powers the [`ActionStateDriver`](crate::action_state::ActionStateDriver) component based on an [`Interaction`](bevy::ui::Interaction) component +/// - powers the [`ActionStateDriver`](crate::action_driver::ActionStateDriver) component based on an [`Interaction`](bevy::ui::Interaction) component /// - [`release_on_disable`](crate::systems::release_on_disable), which resets action states when [`ToggleActions`] is flipped, to avoid persistent presses. pub struct InputManagerPlugin { _phantom: PhantomData, @@ -72,7 +72,7 @@ impl InputManagerPlugin { /// /// Inputs will not be processed; instead, [`ActionState`] /// should be copied directly from the state provided by the client, - /// or constructed from [`ActionDiff`](crate::action_state::ActionDiff) event streams. + /// or constructed from [`ActionDiff`](crate::action_diff::ActionDiff) event streams. #[must_use] pub fn server() -> Self { Self { diff --git a/src/timing.rs b/src/timing.rs index d64f38e3..7df85b67 100644 --- a/src/timing.rs +++ b/src/timing.rs @@ -1,7 +1,5 @@ //! Information about when an action was pressed or released. -#[allow(unused_imports)] // For the documentation -use crate::action_state::ActionState; use bevy::{ reflect::Reflect, utils::{Duration, Instant}, @@ -10,8 +8,8 @@ use serde::{Deserialize, Serialize}; /// Stores information about when an action was pressed or released /// -/// This struct is principally used as a field on [`ActionData`], -/// which itself lives inside an [`ActionState`]. +/// This struct is principally used as a field on [`ActionData`](crate::action_state::ActionData), +/// which itself lives inside an [`ActionState`](crate::action_state::ActionState). #[derive(Debug, Clone, PartialEq, Eq, Default, Serialize, Deserialize, Reflect)] pub struct Timing { /// The [`Instant`] at which the button was pressed or released