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