[][src]Function tetra::input::get_gamepad_buttons_pressed

pub fn get_gamepad_buttons_pressed(
    ctx: &Context,
    gamepad_index: usize
) -> impl Iterator<Item = &GamepadButton>

Returns an iterator of the buttons that were pressed this tick on the specified gamepad.

If the gamepad is disconnected, an empty iterator will be returned.