mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-23 02:38:52 -05:00
Changed default cursor mode for fullscreen.
This commit is contained in:
parent
8282a8fbe0
commit
159f9b9526
|
@ -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…
Reference in New Issue
Block a user