Renamed CURSOR_CAPTURED to CURSOR_DISABLED.

This commit is contained in:
Camilla Berglund
2013-04-26 17:20:31 +02:00
parent 9264b5da0e
commit 6df692b61e
7 changed files with 35 additions and 35 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ static double cursor_y;
static void toggle_cursor(GLFWwindow* window)
{
if (glfwGetInputMode(window, GLFW_CURSOR) == GLFW_CURSOR_CAPTURED)
if (glfwGetInputMode(window, GLFW_CURSOR) == GLFW_CURSOR_DISABLED)
{
printf("Released cursor\n");
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_NORMAL);
@@ -49,7 +49,7 @@ static void toggle_cursor(GLFWwindow* window)
else
{
printf("Captured cursor\n");
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_CAPTURED);
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_DISABLED);
}
}