Added initial joystick support on OS X

This commit is contained in:
Sergey Tikhomirov
2011-09-18 22:05:00 +03:00
parent 901a743d97
commit 2357cf6f30
4 changed files with 486 additions and 8 deletions
+4
View File
@@ -225,6 +225,8 @@ int _glfwPlatformInit(void)
_glfwLibrary.NS.desktopMode =
(NSDictionary*) CGDisplayCurrentMode(CGMainDisplayID());
_glfwInitJoysticks();
return GL_TRUE;
}
@@ -243,6 +245,8 @@ int _glfwPlatformTerminate(void)
[_glfwLibrary.NS.autoreleasePool release];
_glfwLibrary.NS.autoreleasePool = nil;
_glfwTerminateJoysticks();
return GL_TRUE;
}