Function glfwGetJoystickAxes

  • This function returns the values of all axes of the specified joystick. Each element in the array is a value between -1.0 and 1.0.

    If the specified joystick is not present this function will return NULL but will not generate an error. This can be used instead of first calling glfwJoystickPresent.

    Parameters

    • jid: number

      The joystick to query.

    • count: number

      Where to store the number of axis values in the returned array. This is set to zero if the joystick is not present or an error occurred.

    Returns bigint

    An array of axis values, or NULL if the joystick is not present or an error occurred.

Generated using TypeDoc