pub fn gamepad_connection_system(
    gamepads: ResMut<'_, Gamepads>,
    gamepad_event: EventReader<'_, '_, GamepadEvent>
)
Expand description

Monitors gamepad connection and disconnection events and updates the Gamepads resource accordingly.

Note

Whenever a Gamepad connects or disconnects, an information gets printed to the console using the info! macro.