mirror of
https://github.com/glfw/glfw.git
synced 2026-09-23 09:08:58 +00:00
Added GLFW_REPEAT.
This commit is contained in:
+8
-2
@@ -488,11 +488,17 @@ static GLboolean initDisplay(void)
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
||||
XkbSetDetectableAutoRepeat(_glfw.x11.display, True, &supported);
|
||||
if (!XkbSetDetectableAutoRepeat(_glfw.x11.display, True, &supported))
|
||||
{
|
||||
_glfwInputError(GLFW_PLATFORM_ERROR,
|
||||
"X11: Failed to set detectable key repeat");
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
||||
if (!supported)
|
||||
{
|
||||
_glfwInputError(GLFW_PLATFORM_ERROR,
|
||||
"X11: Detectable key repeat is not available");
|
||||
"X11: Detectable key repeat is not supported");
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user