From f6ae5e41de720996195eb02e1ba6ea954e4932e9 Mon Sep 17 00:00:00 2001 From: CowThing Date: Tue, 3 May 2016 14:42:41 -0400 Subject: [PATCH] Input Documentation Input Documentation --- doc/base/classes.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/doc/base/classes.xml b/doc/base/classes.xml index 4c691bc61e4..cba5425d3f3 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -15031,8 +15031,10 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + A Singleton that deals with inputs. + A Singleton that deals with inputs. This includes key presses, mouse buttons and movement, joysticks, and input actions. @@ -15041,6 +15043,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Returns true or false depending on whether the key is pressed or not. You can pass KEY_*, which are pre-defined constants listed in [@Global Scope]. @@ -15069,6 +15072,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Returns true or false depending on whether the action event is pressed. Actions and their events can be set in the Project Settings / Input Map tab. Or be set with [InputMap]. @@ -15129,48 +15133,56 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + If the device has an accelerometer, this will return the movement. + Returns the mouse speed. + Returns mouse buttons as a bitmask. If multiple mouse buttons are pressed at the same time the bits are added together. + Set the mouse mode. See the constants for more information. + Return the mouse mode. See the constants for more information. + Sets the mouse position to the specified vector. + This will simulate pressing the specificed action. + If the specified action is already pressed, this will release it. @@ -15179,6 +15191,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Set a custom mouse cursor image, which is only visible inside the game window. The hotspot can also be specified. @@ -15195,10 +15208,13 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + 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 unable to leave the game window. But it will still register movement and mouse button presses.