Function bevy::input::gamepad::gamepad_button_event_system
source · pub fn gamepad_button_event_system(
button_changed_events: EventReader<'_, '_, GamepadButtonChangedEvent>,
button_input: ResMut<'_, ButtonInput<GamepadButton>>,
button_input_events: EventWriter<'_, GamepadButtonInput>,
settings: Res<'_, GamepadSettings>
)
Expand description
Uses GamepadButtonChangedEvent
s to update the relevant ButtonInput
and Axis
values.