mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 16:44:11 +00:00
Add null joystick backend
This prepares the X11 backend to support other joystick APIs, for example the FreeBSD libusb one.
This commit is contained in:
@@ -798,8 +798,10 @@ int _glfwPlatformInit(void)
|
||||
if (!_glfwInitThreadLocalStoragePOSIX())
|
||||
return GLFW_FALSE;
|
||||
|
||||
#if defined(__linux__)
|
||||
if (!_glfwInitJoysticksLinux())
|
||||
return GLFW_FALSE;
|
||||
#endif
|
||||
|
||||
_glfwInitTimerPOSIX();
|
||||
|
||||
@@ -853,7 +855,9 @@ void _glfwPlatformTerminate(void)
|
||||
// cleanup callbacks that get called by it
|
||||
_glfwTerminateGLX();
|
||||
|
||||
#if defined(__linux__)
|
||||
_glfwTerminateJoysticksLinux();
|
||||
#endif
|
||||
_glfwTerminateThreadLocalStoragePOSIX();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user