From f03614277ded7b6f3a711833c8d6f3c68d0db552 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Wed, 10 Apr 2019 19:04:21 +0200 Subject: [PATCH] Update cursor test tracking when enabling cursor Related to #1461. --- tests/cursor.c | 1 + 1 file changed, 1 insertion(+) 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;