Function bevy_input::common_conditions::input_pressed
source · pub fn input_pressed<T>(
input: T
) -> impl FnMut(Res<'_, ButtonInput<T>>) -> bool + Clone
Expand description
Run condition that is active if ButtonInput::pressed
is true for the given input.