Function bevy::input::mouse::mouse_button_input_system

pub fn mouse_button_input_system(
    mouse_button_input: ResMut<'_, ButtonInput<MouseButton>>,
    mouse_button_input_events: EventReader<'_, '_, MouseButtonInput>,
)
Expand description

Updates the ButtonInput<MouseButton> resource with the latest MouseButtonInput events.

ยงDifferences

The main difference between the MouseButtonInput event and the ButtonInput<MouseButton> resource is that the latter has convenient functions like ButtonInput::pressed, ButtonInput::just_pressed and ButtonInput::just_released.