mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 16:44:11 +00:00
Made XInput2 optional at compile-time.
This is required for RHEL 5, CentOS 5 and Cygwin-X. Fixes #314.
This commit is contained in:
@@ -535,6 +535,7 @@ static GLboolean initExtensions(void)
|
||||
_glfw.x11.xinerama.available = GL_TRUE;
|
||||
}
|
||||
|
||||
#if defined(_GLFW_HAS_XINPUT)
|
||||
if (XQueryExtension(_glfw.x11.display,
|
||||
"XInputExtension",
|
||||
&_glfw.x11.xi.majorOpcode,
|
||||
@@ -551,6 +552,7 @@ static GLboolean initExtensions(void)
|
||||
_glfw.x11.xi.available = GL_TRUE;
|
||||
}
|
||||
}
|
||||
#endif /*_GLFW_HAS_XINPUT*/
|
||||
|
||||
// Check if Xkb is supported on this display
|
||||
_glfw.x11.xkb.versionMajor = 1;
|
||||
|
||||
Reference in New Issue
Block a user