From 98aa3b669ee3425f40d6c3f3f96217bddf7b7137 Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Tue, 30 Mar 2021 18:35:08 -0400 Subject: Add MOUSE_MODE_CONFINED_HIDDEN Co-authored-by: Hugo Locurcio --- doc/classes/DisplayServer.xml | 8 ++++++++ doc/classes/Input.xml | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'doc/classes') diff --git a/doc/classes/DisplayServer.xml b/doc/classes/DisplayServer.xml index 0c9df071a7..6c1cd37beb 100644 --- a/doc/classes/DisplayServer.xml +++ b/doc/classes/DisplayServer.xml @@ -1044,12 +1044,20 @@ + Makes the mouse cursor visible if it is hidden. + 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. + [b]Note:[/b] If you want to process the mouse's movement in this mode, you need to use [member InputEventMouseMotion.relative]. + Confines the mouse cursor to the game window, and make it visible. + + + Confines the mouse cursor to the game window, and make it hidden. diff --git a/doc/classes/Input.xml b/doc/classes/Input.xml index d7408cd0ff..ebfd32c5fb 100644 --- a/doc/classes/Input.xml +++ b/doc/classes/Input.xml @@ -449,7 +449,10 @@ [b]Note:[/b] If you want to process the mouse's movement in this mode, you need to use [member InputEventMouseMotion.relative]. - Makes the mouse cursor visible but confines it to the game window. + Confines the mouse cursor to the game window, and make it visible. + + + Confines the mouse cursor to the game window, and make it hidden. Arrow cursor. Standard, default pointing cursor. -- cgit v1.2.3