mirror of
https://github.com/glfw/glfw.git
synced 2024-11-11 13:03:52 +00:00
Return NULL instead of GLFW_FALSE where appropriate
Related to 782e6b6cef
.
Closes #1738.
This commit is contained in:
parent
c01acc267a
commit
0cc13ceafc
@ -974,7 +974,7 @@ GLFWAPI const float* glfwGetJoystickAxes(int jid, int* count)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!initJoysticks())
|
if (!initJoysticks())
|
||||||
return GLFW_FALSE;
|
return NULL;
|
||||||
|
|
||||||
js = _glfw.joysticks + jid;
|
js = _glfw.joysticks + jid;
|
||||||
if (!js->present)
|
if (!js->present)
|
||||||
@ -1006,7 +1006,7 @@ GLFWAPI const unsigned char* glfwGetJoystickButtons(int jid, int* count)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!initJoysticks())
|
if (!initJoysticks())
|
||||||
return GLFW_FALSE;
|
return NULL;
|
||||||
|
|
||||||
js = _glfw.joysticks + jid;
|
js = _glfw.joysticks + jid;
|
||||||
if (!js->present)
|
if (!js->present)
|
||||||
@ -1042,7 +1042,7 @@ GLFWAPI const unsigned char* glfwGetJoystickHats(int jid, int* count)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!initJoysticks())
|
if (!initJoysticks())
|
||||||
return GLFW_FALSE;
|
return NULL;
|
||||||
|
|
||||||
js = _glfw.joysticks + jid;
|
js = _glfw.joysticks + jid;
|
||||||
if (!js->present)
|
if (!js->present)
|
||||||
@ -1071,7 +1071,7 @@ GLFWAPI const char* glfwGetJoystickName(int jid)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!initJoysticks())
|
if (!initJoysticks())
|
||||||
return GLFW_FALSE;
|
return NULL;
|
||||||
|
|
||||||
js = _glfw.joysticks + jid;
|
js = _glfw.joysticks + jid;
|
||||||
if (!js->present)
|
if (!js->present)
|
||||||
|
Loading…
Reference in New Issue
Block a user