glfwGetJoystickUserPointer

Returns the user pointer of the specified joystick.

This function returns the current value of the user-defined pointer of the specified joystick. The initial value is null.

This function may be called from the joystick callback, even for a joystick that is being disconnected.

extern (C) @nogc nothrow __gshared
void*
glfwGetJoystickUserPointer
(
int jid
)

Parameters

jid int

The joystick whose pointer to return.

Errors: Possible errors include @ref GLFW_NOT_INITIALIZED.

Thread Safety

This function may be called from any thread. Access is not synchronized.

@sa @ref joystick_userptr @sa @ref glfwSetJoystickUserPointer

Meta

Since

Added in version 3.3.

Ingroup: input