Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Document captured mouse mode still being able to press centered buttons

Hugo Locurcio90d334c27f14
diff --git a/doc/classes/DisplayServer.xml b/doc/classes/DisplayServer.xml
index bdec2b5113b..3f66d546e3e 100644
--- a/doc/classes/DisplayServer.xml
+++ b/doc/classes/DisplayServer.xml
@@ -3127,7 +3127,8 @@
</constant>
<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 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] or [member InputEventMouseMotion.screen_relative].
+ [b]Note:[/b] Even when captured, the mouse cursor is still able to press buttons if they overlap with the center of the window.
</constant>
<constant name="MOUSE_MODE_CONFINED" value="3" enum="MouseMode">
Confines the mouse cursor to the game window, and make it visible.
diff --git a/doc/classes/Input.xml b/doc/classes/Input.xml
index d17b93743a0..afdc6baeef4 100644
--- a/doc/classes/Input.xml
+++ b/doc/classes/Input.xml
@@ -948,7 +948,8 @@
</constant>
<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 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] or [member InputEventMouseMotion.screen_relative].
+ [b]Note:[/b] Even when captured, the mouse cursor is still able to press buttons if they overlap with the center of the window.
</constant>
<constant name="MOUSE_MODE_CONFINED" value="3" enum="MouseMode">
Confines the mouse cursor to the game window, and make it visible.