|
|
@ -60,14 +60,17 @@ static void key_callback(GLFWwindow* window, int key, int scancode, int action, |
|
|
|
{ |
|
|
|
{ |
|
|
|
case GLFW_KEY_D: |
|
|
|
case GLFW_KEY_D: |
|
|
|
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_DISABLED); |
|
|
|
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_DISABLED); |
|
|
|
|
|
|
|
printf("(( cursor is disabled ))\n"); |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
case GLFW_KEY_H: |
|
|
|
case GLFW_KEY_H: |
|
|
|
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_HIDDEN); |
|
|
|
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_HIDDEN); |
|
|
|
|
|
|
|
printf("(( cursor is hidden ))\n"); |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
case GLFW_KEY_N: |
|
|
|
case GLFW_KEY_N: |
|
|
|
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_NORMAL); |
|
|
|
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_NORMAL); |
|
|
|
|
|
|
|
printf("(( cursor is normal ))\n"); |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
case GLFW_KEY_R: |
|
|
|
case GLFW_KEY_R: |
|
|
|