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

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

Returns an iterator of the buttons that were pressed on the specified gamepad since the last update.

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