mirror of
https://github.com/glfw/glfw.git
synced 2026-09-18 22:55:46 +00:00
Changed default cursor mode for fullscreen.
This commit is contained in:
@@ -256,11 +256,6 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height,
|
||||
// Restore the previously current context (or NULL)
|
||||
glfwMakeContextCurrent((GLFWwindow*) previous);
|
||||
|
||||
// The GLFW specification states that fullscreen windows have the cursor
|
||||
// captured by default
|
||||
if (wndconfig.monitor)
|
||||
glfwSetInputMode((GLFWwindow*) window, GLFW_CURSOR_MODE, GLFW_CURSOR_CAPTURED);
|
||||
|
||||
if (wndconfig.monitor == NULL && wndconfig.visible)
|
||||
glfwShowWindow((GLFWwindow*) window);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user