[][src]Function tetra::input::get_gamepad_stick_position

pub fn get_gamepad_stick_position(
    ctx: &Context,
    gamepad_index: usize,
    stick: GamepadStick
) -> Vec2

Returns the current position of the specified gamepad control stick.

If the gamepad is disconnected, this will always return (0.0, 0.0).