mirror of
https://github.com/glfw/glfw.git
synced 2026-09-19 15:25:50 +00:00
Replace GL booleans with public macros
This commit is contained in:
@@ -100,7 +100,7 @@ static void openJoystickDevice(const char* path)
|
||||
_glfw.linux_js.js[joy].axes = calloc(axisCount, sizeof(float));
|
||||
_glfw.linux_js.js[joy].buttons = calloc(buttonCount, 1);
|
||||
|
||||
_glfw.linux_js.js[joy].present = GL_TRUE;
|
||||
_glfw.linux_js.js[joy].present = GLFW_TRUE;
|
||||
#endif // __linux__
|
||||
}
|
||||
|
||||
@@ -199,7 +199,7 @@ int _glfwInitJoysticks(void)
|
||||
_glfwInputError(GLFW_PLATFORM_ERROR,
|
||||
"Linux: Failed to initialize inotify: %s",
|
||||
strerror(errno));
|
||||
return GL_FALSE;
|
||||
return GLFW_FALSE;
|
||||
}
|
||||
|
||||
// HACK: Register for IN_ATTRIB as well to get notified when udev is done
|
||||
@@ -220,7 +220,7 @@ int _glfwInitJoysticks(void)
|
||||
if (regcomp(&_glfw.linux_js.regex, "^js[0-9]\\+$", 0) != 0)
|
||||
{
|
||||
_glfwInputError(GLFW_PLATFORM_ERROR, "Linux: Failed to compile regex");
|
||||
return GL_FALSE;
|
||||
return GLFW_FALSE;
|
||||
}
|
||||
|
||||
dir = opendir(dirname);
|
||||
@@ -253,7 +253,7 @@ int _glfwInitJoysticks(void)
|
||||
|
||||
#endif // __linux__
|
||||
|
||||
return GL_TRUE;
|
||||
return GLFW_TRUE;
|
||||
}
|
||||
|
||||
// Close all opened joystick handles
|
||||
|
||||
Reference in New Issue
Block a user