Removed double mode for cursor mode.

This commit is contained in:
Camilla Berglund
2013-04-26 14:29:55 +02:00
parent 2d1b835711
commit 9264b5da0e
5 changed files with 12 additions and 12 deletions

View File

@@ -41,15 +41,15 @@ static double cursor_y;
static void toggle_cursor(GLFWwindow* window)
{
if (glfwGetInputMode(window, GLFW_CURSOR_MODE) == GLFW_CURSOR_CAPTURED)
if (glfwGetInputMode(window, GLFW_CURSOR) == GLFW_CURSOR_CAPTURED)
{
printf("Released cursor\n");
glfwSetInputMode(window, GLFW_CURSOR_MODE, GLFW_CURSOR_NORMAL);
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_NORMAL);
}
else
{
printf("Captured cursor\n");
glfwSetInputMode(window, GLFW_CURSOR_MODE, GLFW_CURSOR_CAPTURED);
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_CAPTURED);
}
}