Moving functions to their respective sections.  Related to delayed
joystick Initialization.
This commit is contained in:
Camilla Löwy
2020-07-21 17:46:48 +02:00
parent 782e6b6cef
commit f771d41292
3 changed files with 75 additions and 91 deletions
+1 -9
View File
@@ -304,11 +304,9 @@ static void removeCallback(void* context,
//////////////////////////////////////////////////////////////////////////
////// GLFW internal API //////
////// GLFW platform API //////
//////////////////////////////////////////////////////////////////////////
// Initialize joystick interface
//
GLFWbool _glfwPlatformInitJoysticks(void)
{
CFMutableArrayRef matching;
@@ -386,8 +384,6 @@ GLFWbool _glfwPlatformInitJoysticks(void)
return GLFW_TRUE;
}
// Close all opened joystick handles
//
void _glfwPlatformTerminateJoysticks(void)
{
int jid;
@@ -403,10 +399,6 @@ void _glfwPlatformTerminateJoysticks(void)
}
//////////////////////////////////////////////////////////////////////////
////// GLFW platform API //////
//////////////////////////////////////////////////////////////////////////
int _glfwPlatformPollJoystick(_GLFWjoystick* js, int mode)
{
if (mode & _GLFW_POLL_AXES)