mirror of
https://github.com/glfw/glfw.git
synced 2025-09-04 04:50:41 +00:00
Compare commits
2 Commits
9b31b1f05e
...
399a8e9b1d
Author | SHA1 | Date | |
---|---|---|---|
|
399a8e9b1d | ||
|
ee38126be5 |
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user