glfwJoystickIsGamepad¶
Returns whether the specified joystick has a gamepad mapping.
This function returns whether the specified joystick is both present and has a gamepad mapping.
If the specified joystick is present but does not have a gamepad mapping
this function will return GLFW_FALSE
but will not generate an error. Call
glfwJoystickPresent
to check if a
joystick is present regardless of
whether it has a mapping.
- arguments
-
int
$jid
Thejoystick
to query.
- returns
-
int
GLFW_TRUE
if a joystick is both present and has a gamepad mapping, orGLFW_FALSE
otherwise.