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

@@ -320,13 +320,13 @@ void mouse_button_callback(GLFWwindow* window, int button, int action, int mods)
if (action == GLFW_PRESS)
{
glfwSetInputMode(window, GLFW_CURSOR_MODE, GLFW_CURSOR_CAPTURED);
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_CAPTURED);
locked = GL_TRUE;
}
else
{
locked = GL_FALSE;
glfwSetInputMode(window, GLFW_CURSOR_MODE, GLFW_CURSOR_NORMAL);
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_NORMAL);
}
}