Changed default cursor mode for fullscreen.

master
Camilla Berglund ago%!(EXTRA string=12 years)
parent 8282a8fbe0
commit 159f9b9526
  1. 1
      README.md
  2. 6
      include/GL/glfw3.h
  3. 5
      src/window.c

@ -313,6 +313,7 @@ GLFW.
* Changed `glfwGetVideoModes` to return a dynamic, unlimited number of video
modes for the specified monitor
* Changed cursor position to double-precision floating-point
* Changed default cursor mode for fullscreen to normal
* Renamed `glfw.h` to `glfw3.h` to avoid conflicts with 2.x series
* Renamed `glfwOpenWindowHint` to `glfwWindowHint`
* Renamed `GLFW_ACTIVE` to `GLFW_FOCUSED`

@ -1148,10 +1148,8 @@ GLFWAPI void glfwWindowHint(int target, int hint);
* invisible using the `GLFW_VISIBLE` window hint, set its position and then
* show it.
*
* @remarks For full screen windows the initial cursor mode is
* `GLFW_CURSOR_CAPTURED` and the screen saver is prohibited from starting.
* For regular windows the initial cursor mode is `GLFW_CURSOR_NORMAL` and the
* screen saver is allowed to start.
* @remarks If a fullscreen window is active, the screensaver is prohibited
* from starting.
*
* @remarks **Windows:** If the executable has an icon resource named
* `GLFW_ICON,` it will be set as the icon for the window. If no such icon is

@ -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);

Loading…
Cancel
Save