Function bevy::input::mouse::mouse_button_input_system
pub fn mouse_button_input_system(
mouse_button_input: ResMut<'_, Input<MouseButton>>,
mouse_button_input_events: EventReader<'_, '_, MouseButtonInput>
)
Expand description
Updates the Input<MouseButton>
resource with the latest MouseButtonInput
events.
Differences
The main difference between the MouseButtonInput
event and the Input<MouseButton>
resource is that
the latter has convenient functions like Input::pressed
, Input::just_pressed
and Input::just_released
.