Replaced repeat kluge with detectable auto repeat.

This commit is contained in:
Camilla Berglund
2013-01-12 21:01:44 +01:00
parent 6a4c175816
commit fcb96967ba
3 changed files with 13 additions and 27 deletions
+3 -1
View File
@@ -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;
}