From 228ce8170a64ccabeec34a610b293006f3fededd Mon Sep 17 00:00:00 2001 From: Blazepaws <157802762+blazepaws@users.noreply.github.com> Date: Sun, 15 Sep 2024 17:22:39 +0200 Subject: [PATCH] Use of deprecated function in example for ButtonInput (#15221) The function `bevy_input::schedule::condition::Condition::or_else` has been deprecated in favor of `bevy_input::schedule::condition::Condition::or`. However the docs for `ButtonInput` were still using the deprecated function in their example. --- crates/bevy_input/src/button_input.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_input/src/button_input.rs b/crates/bevy_input/src/button_input.rs index 8162962cd4..3a5d7fd6ae 100644 --- a/crates/bevy_input/src/button_input.rs +++ b/crates/bevy_input/src/button_input.rs @@ -127,7 +127,7 @@ use std::hash::Hash; /// Update, /// something_used.run_if( /// input_just_pressed(KeyCode::KeyE) -/// .or_else(input_just_pressed(GamepadButton::new( +/// .or(input_just_pressed(GamepadButton::new( /// Gamepad::new(0), /// GamepadButtonType::West, /// ))),