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
					
				@ -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 New Issue
	
	Block a user