glfwGetJoystickName¶
Returns the name of the specified joystick.
This function returns the name, encoded as UTF-8, of the specified joystick. The returned string is allocated and freed by GLFW. You should not free it yourself.
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.
- arguments
-
int$jidThejoystickto query.
- returns
-
stringThe UTF-8 encoded name of the joystick, orNULLif the joystick is not present or anerroroccurred.