[−][src]Function tetra::input::is_gamepad_button_pressed
pub fn is_gamepad_button_pressed(
ctx: &Context,
gamepad_index: usize,
button: GamepadButton
) -> bool
Returns true if the specified gamepad button was pressed this tick.
If the gamepad is disconnected, this will always return false
.