Compare commits

...

2 Commits

Author SHA1 Message Date
Felipe Jorge
9b31b1f05e
Merge ee38126be5 into 63a7e8b7f8 2025-08-21 05:55:35 +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;
}