Function bevy_ui_navigation::systems::default_gamepad_input
source · [−]pub fn default_gamepad_input(
nav_cmds: EventWriter<'_, '_, NavRequest>,
has_focused: Query<'_, '_, (), With<Focused>>,
input_mapping: Res<'_, InputMapping>,
buttons: Res<'_, Input<GamepadButton>>,
axis: Res<'_, Axis<GamepadAxis>>,
ui_input_status: Local<'_, bool>
)
Expand description
A system to send gamepad control events to the focus system
Dpad and left stick for movement, LT
and RT
for scopped menus, A
B
for selection and cancel.
The button mapping may be controlled through the InputMapping
resource.
You may however need to customize the behavior of this system (typically
when integrating in the game) in this case, you should write your own
system that sends NavRequest
events