glfwGetGamepadName¶
Returns the human-readable gamepad name for the specified joystick.
This function returns the human-readable name of the gamepad from the gamepad mapping assigned to the specified joystick.
If the specified joystick is not present or does not have a gamepad mapping
this function will return NULL but will not generate an error. Call
glfwJoystickPresent to check whether
it is present regardless of
whether it has a mapping.
- arguments
-
int$jidThejoystickto query.
- returns
-
stringThe UTF-8 encoded name of the gamepad, orNULLif the joystick is not present, does not have a mapping or anerroroccurred.