From 31346211f2c9a37e0b5226e2fd4090a55c98d3bc Mon Sep 17 00:00:00 2001 From: Markus Sauermann <6299227+Sauermann@users.noreply.github.com> Date: Sat, 7 Jan 2023 12:21:45 +0100 Subject: [PATCH] Fix doc for position of captured mouse The position is not at the center of the screen but of the window. --- doc/classes/DisplayServer.xml | 2 +- doc/classes/Input.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/classes/DisplayServer.xml b/doc/classes/DisplayServer.xml index 29135376c55..b4c28e81c61 100644 --- a/doc/classes/DisplayServer.xml +++ b/doc/classes/DisplayServer.xml @@ -1512,7 +1512,7 @@ Makes the mouse cursor hidden if it is visible. - Captures the mouse. The mouse will be hidden and its position locked at the center of the screen. + Captures the mouse. The mouse will be hidden and its position locked at the center of the window manager's window. [b]Note:[/b] If you want to process the mouse's movement in this mode, you need to use [member InputEventMouseMotion.relative]. diff --git a/doc/classes/Input.xml b/doc/classes/Input.xml index be8c8ff83fc..97061d8efa7 100644 --- a/doc/classes/Input.xml +++ b/doc/classes/Input.xml @@ -397,7 +397,7 @@ Makes the mouse cursor hidden if it is visible. - Captures the mouse. The mouse will be hidden and its position locked at the center of the screen. + Captures the mouse. The mouse will be hidden and its position locked at the center of the window manager's window. [b]Note:[/b] If you want to process the mouse's movement in this mode, you need to use [member InputEventMouseMotion.relative].