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
$jid
Thejoystick
to query.
- returns
-
string
The UTF-8 encoded name of the joystick, orNULL
if the joystick is not present or anerror
occurred.