Function tetra::input::get_gamepad_axis_position
source · pub fn get_gamepad_axis_position(
ctx: &Context,
gamepad_index: usize,
axis: GamepadAxis
) -> f32
Expand description
Returns the current position of the specified gamepad axis.
If the gamepad is disconnected, this will always return 0.0
.