Compare commits

...

2 Commits

Author SHA1 Message Date
Felipe Jorge
399a8e9b1d
Merge ee38126be5 into 0d2d85d19c 2025-08-18 12:02:26 +00:00
Felipe Jorge
ee38126be5 Fix joystick callback when it's already connected on app start 2025-07-15 09:47:31 -03:00

View File

@ -1261,11 +1261,8 @@ GLFWAPI void* glfwGetJoystickUserPointer(int jid)
GLFWAPI GLFWjoystickfun glfwSetJoystickCallback(GLFWjoystickfun cbfun)
{
_GLFW_REQUIRE_INIT_OR_RETURN(NULL);
if (!initJoysticks())
return NULL;
_GLFW_SWAP(GLFWjoystickfun, _glfw.callbacks.joystick, cbfun);
initJoysticks();
return cbfun;
}