浏览代码

Merge pull request #71022 from Sauermann/fix-captured-position-doc

Fix doc for position of captured mouse
Rémi Verschelde 2 年之前
父节点
当前提交
796690948f
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      doc/classes/DisplayServer.xml
  2. 1 1
      doc/classes/Input.xml

+ 1 - 1
doc/classes/DisplayServer.xml

@@ -1525,7 +1525,7 @@
 			Makes the mouse cursor hidden if it is visible.
 			Makes the mouse cursor hidden if it is visible.
 		</constant>
 		</constant>
 		<constant name="MOUSE_MODE_CAPTURED" value="2" enum="MouseMode">
 		<constant name="MOUSE_MODE_CAPTURED" value="2" enum="MouseMode">
-			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].
 			[b]Note:[/b] If you want to process the mouse's movement in this mode, you need to use [member InputEventMouseMotion.relative].
 		</constant>
 		</constant>
 		<constant name="MOUSE_MODE_CONFINED" value="3" enum="MouseMode">
 		<constant name="MOUSE_MODE_CONFINED" value="3" enum="MouseMode">

+ 1 - 1
doc/classes/Input.xml

@@ -397,7 +397,7 @@
 			Makes the mouse cursor hidden if it is visible.
 			Makes the mouse cursor hidden if it is visible.
 		</constant>
 		</constant>
 		<constant name="MOUSE_MODE_CAPTURED" value="2" enum="MouseMode">
 		<constant name="MOUSE_MODE_CAPTURED" value="2" enum="MouseMode">
-			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].
 			[b]Note:[/b] If you want to process the mouse's movement in this mode, you need to use [member InputEventMouseMotion.relative].
 		</constant>
 		</constant>
 		<constant name="MOUSE_MODE_CONFINED" value="3" enum="MouseMode">
 		<constant name="MOUSE_MODE_CONFINED" value="3" enum="MouseMode">