glfwGetJoystickUserPointer function
! @brief 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.
@paramin
jid 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
@since Added in version 3.3.
@ingroup input
GLFWAPI void* glfwGetJoystickUserPointer(int jid)
Implementation
Pointer<Void> glfwGetJoystickUserPointer(int jid) {
final glfwGetJoystickUserPointerLookupFunction = libglfw.lookupFunction<
Pointer<Void> Function(Int32 jid),
Pointer<Void> Function(int jid)>('glfwGetJoystickUserPointer');
return glfwGetJoystickUserPointerLookupFunction(jid);
}