diff --git a/src/user_inputs/axislike_settings.rs b/src/user_inputs/axislike_settings.rs index a5a0f5a2f..ca7181774 100644 --- a/src/user_inputs/axislike_settings.rs +++ b/src/user_inputs/axislike_settings.rs @@ -169,7 +169,7 @@ pub struct SingleAxisDeadzone { impl SingleAxisDeadzone { /// The default deadzone with a small offset to filter out near-zero input values. /// - /// This deadzone excludes input values within the range [-0.1, 0.1]. + /// This deadzone excludes input values within the range `[-0.1, 0.1]`. pub const DEFAULT: Self = Self { negative_low: -0.1, positive_low: 0.1, @@ -178,14 +178,14 @@ impl SingleAxisDeadzone { /// The deadzone that only filters out the zeroes. /// - /// This deadzone does not filter out near-zero negative or positive values. + /// This deadzone doesn't filter out near-zero negative or positive values. pub const ZERO: Self = Self { negative_low: 0.0, positive_low: 0.0, negative_low_width: 0.0, }; - /// Creates a new [`SingleAxisDeadzone`] with the given settings. + /// Creates a new [`SingleAxisDeadzone`] to filter out input values within the range `[negative_low, positive_low]`. /// /// # Arguments /// @@ -229,7 +229,7 @@ impl SingleAxisDeadzone { /// /// This function calculates the deadzone width based on the input value and the deadzone settings. /// If the input value falls within the deadzone range, it returns `0.0`. - /// Otherwise, it normalizes the input value into the range [-1.0, 1.0] by subtracting the deadzone width. + /// Otherwise, it normalizes the input value into the range `[-1.0, 1.0]` by subtracting the deadzone width. /// /// # Panics ///