Compare commits

...

2 Commits

Author SHA1 Message Date
Felipe Jorge
7ecf8e0144
Merge ee38126be5 into 8e15281d34 2025-09-03 14:37:53 +02: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;
}