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

pub fn get_gamepad_stick_position(
    ctx: &Context,
    gamepad_id: usize,
    stick: GamepadStick
) -> Vec2<f32>
Expand description

Returns the current position of the specified gamepad control stick.

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