mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
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.
This commit is contained in:
parent
62b2cdab32
commit
228ce8170a
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
/// ))),
|
||||
|
|
Loading…
Reference in a new issue