mirror of
https://github.com/gwm17/glfw.git
synced 2025-02-07 06:38:50 -05:00
parent
45a62adf82
commit
f03614277d
|
@ -181,6 +181,7 @@ static void key_callback(GLFWwindow* window, int key, int scancode, int action,
|
||||||
|
|
||||||
case GLFW_KEY_N:
|
case GLFW_KEY_N:
|
||||||
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_NORMAL);
|
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_NORMAL);
|
||||||
|
glfwGetCursorPos(window, &cursor_x, &cursor_y);
|
||||||
printf("(( cursor is normal ))\n");
|
printf("(( cursor is normal ))\n");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user