From 69b31bcbe640f444e5709362c93a66c304b6fdec Mon Sep 17 00:00:00 2001 From: Wesley Clements Date: Mon, 11 Dec 2023 13:51:19 -0500 Subject: [PATCH] renamed MockUIInput to MockUIInteraction --- src/input_mocking.rs | 8 ++++---- src/lib.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/input_mocking.rs b/src/input_mocking.rs index 5484b103..35ff080d 100644 --- a/src/input_mocking.rs +++ b/src/input_mocking.rs @@ -139,7 +139,7 @@ pub trait QueryInput { /// Send fake UI interaction for testing purposes. #[cfg(feature = "ui")] -pub trait MockUIInput { +pub trait MockUIInteraction { /// Presses all `bevy::ui` buttons with the matching `Marker` component /// /// Changes their [`Interaction`] component to [`Interaction::Pressed`] @@ -438,7 +438,7 @@ impl QueryInput for World { } #[cfg(feature = "ui")] -impl MockUIInput for World { +impl MockUIInteraction for World { fn click_button(&mut self) { let mut button_query = self.query_filtered::<&mut Interaction, With>(); @@ -489,7 +489,7 @@ impl QueryInput for App { } #[cfg(feature = "ui")] -impl MockUIInput for App { +impl MockUIInteraction for App { fn click_button(&mut self) { self.world.click_button::(); } @@ -501,7 +501,7 @@ impl MockUIInput for App { #[cfg(test)] mod test { - use crate::input_mocking::{MockInput, MockUIInput, QueryInput}; + use crate::input_mocking::{MockInput, MockUIInteraction, QueryInput}; use bevy::{ input::{ gamepad::{GamepadConnection, GamepadConnectionEvent, GamepadEvent, GamepadInfo}, diff --git a/src/lib.rs b/src/lib.rs index a8053107..8a08acd6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -41,7 +41,7 @@ pub mod prelude { pub use crate::clashing_inputs::ClashStrategy; pub use crate::input_map::InputMap; #[cfg(feature = "ui")] - pub use crate::input_mocking::MockUIInput; + pub use crate::input_mocking::MockUIInteraction; pub use crate::input_mocking::{MockInput, QueryInput}; pub use crate::scan_codes::QwertyScanCode; pub use crate::user_input::{Modifier, UserInput};