mirror of
https://github.com/glfw/glfw.git
synced 2026-09-20 08:23:13 +00:00
Replaced repeat kluge with detectable auto repeat.
This commit is contained in:
+3
-1
@@ -139,7 +139,9 @@ void _glfwInputKey(_GLFWwindow* window, int key, int action)
|
||||
window->key[key] = GLFW_STICK;
|
||||
else
|
||||
{
|
||||
repeated = (window->key[key] == GLFW_PRESS) && (action == GLFW_PRESS);
|
||||
if (action == GLFW_PRESS && window->key[key] == GLFW_PRESS)
|
||||
repeated = GL_TRUE;
|
||||
|
||||
window->key[key] = (char) action;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user