Added error setting for more cases of invalid tokens.

This commit is contained in:
Camilla Berglund
2011-10-08 23:41:30 +02:00
parent 0544afeb06
commit 1960d1ebb1
3 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ GLFWAPI int glfwGetKey(GLFWwindow handle, int key)
if (key < 0 || key > GLFW_KEY_LAST)
{
// TODO: Decide whether key is a value or enum
_glfwSetError(GLFW_INVALID_VALUE,
_glfwSetError(GLFW_INVALID_ENUM,
"glfwGetKey: The specified key is invalid");
return GLFW_RELEASE;
}