From 0cc13ceafc233cb0bc95c8b3ff8152ee75893bf9 Mon Sep 17 00:00:00 2001 From: Luflosi Date: Thu, 23 Jul 2020 18:18:14 +0200 Subject: [PATCH] Return NULL instead of GLFW_FALSE where appropriate Related to 782e6b6cefc9ac2a2b6779f9e658ab948809253b. Closes #1738. --- src/input.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/input.c b/src/input.c index 97edacda..226f835d 100644 --- a/src/input.c +++ b/src/input.c @@ -974,7 +974,7 @@ GLFWAPI const float* glfwGetJoystickAxes(int jid, int* count) } if (!initJoysticks()) - return GLFW_FALSE; + return NULL; js = _glfw.joysticks + jid; if (!js->present) @@ -1006,7 +1006,7 @@ GLFWAPI const unsigned char* glfwGetJoystickButtons(int jid, int* count) } if (!initJoysticks()) - return GLFW_FALSE; + return NULL; js = _glfw.joysticks + jid; if (!js->present) @@ -1042,7 +1042,7 @@ GLFWAPI const unsigned char* glfwGetJoystickHats(int jid, int* count) } if (!initJoysticks()) - return GLFW_FALSE; + return NULL; js = _glfw.joysticks + jid; if (!js->present) @@ -1071,7 +1071,7 @@ GLFWAPI const char* glfwGetJoystickName(int jid) } if (!initJoysticks()) - return GLFW_FALSE; + return NULL; js = _glfw.joysticks + jid; if (!js->present)