diff --git a/tests/cursor.c b/tests/cursor.c index 7001d6e5..0e6faea0 100644 --- a/tests/cursor.c +++ b/tests/cursor.c @@ -181,6 +181,7 @@ static void key_callback(GLFWwindow* window, int key, int scancode, int action, case GLFW_KEY_N: glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_NORMAL); + glfwGetCursorPos(window, &cursor_x, &cursor_y); printf("(( cursor is normal ))\n"); break;