pub fn has_axis(joystick: u32, axis: Axis) -> bool
Expand description

Check if the joystick support a given axis

If the joystick is not connected, this function returns false.

Arguments

  • joystick - Index of the joystick
  • axis - Axis to check

Return true if the joystick supports the axis, false otherwise