diff options
| author | J08nY | 2016-06-04 17:55:09 +0200 |
|---|---|---|
| committer | Rémi Verschelde | 2016-06-05 00:03:48 +0200 |
| commit | 845a0e25664acfbb5cc26fcbb312f0e32a7f3249 (patch) | |
| tree | 02d80953a7f9a1edede9e9e58be2a8e71556705c /doc/base/classes.xml | |
| parent | bed17e98c85106c49ffa8fab7ed752a5ce1f5e22 (diff) | |
| download | godot-845a0e25664acfbb5cc26fcbb312f0e32a7f3249.tar.gz godot-845a0e25664acfbb5cc26fcbb312f0e32a7f3249.tar.zst godot-845a0e25664acfbb5cc26fcbb312f0e32a7f3249.zip | |
Added InputMap.get_actions()
get_actions() lists all actions in the InputMap.
(cherry picked from commit 1a80b2a04a16f930e0d5cca4bdf322769d5a24f9)
Diffstat (limited to '')
| -rw-r--r-- | doc/base/classes.xml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/base/classes.xml b/doc/base/classes.xml index ef71f1c81..ce3d61594 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -15375,6 +15375,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) <argument index="0" name="action" type="String"> </argument> <description> + Whether this InputMap has an action with name "action". </description> </method> <method name="get_action_id" qualifiers="const"> @@ -15383,6 +15384,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) <argument index="0" name="action" type="String"> </argument> <description> + Return the id of an action. </description> </method> <method name="get_action_from_id" qualifiers="const"> @@ -15391,18 +15393,28 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) <argument index="0" name="id" type="int"> </argument> <description> + Return the action from an id. + </description> + </method> + <method name="get_actions"> + <return type="Array"> + </return> + <description> + Return an [Array] of all actions in the [InputMap]. </description> </method> <method name="add_action"> <argument index="0" name="action" type="String"> </argument> <description> + Add an action to the [InputMap]. </description> </method> <method name="erase_action"> <argument index="0" name="action" type="String"> </argument> <description> + Remove an action from the [InputMap]. </description> </method> <method name="action_add_event"> @@ -15411,6 +15423,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) <argument index="1" name="event" type="InputEvent"> </argument> <description> + Add an [InputEvent] to action. This [InputEvent] will trigger the action. </description> </method> <method name="action_has_event"> @@ -15421,6 +15434,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) <argument index="1" name="event" type="InputEvent"> </argument> <description> + Whether an action has an [InputEvent] associated with it. </description> </method> <method name="action_erase_event"> @@ -15429,6 +15443,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) <argument index="1" name="event" type="InputEvent"> </argument> <description> + Remove an [InputEvent] from an action. </description> </method> <method name="get_action_list"> @@ -15437,6 +15452,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) <argument index="0" name="action" type="String"> </argument> <description> + Return an [Array] of [InputEvent]s associated with an action. </description> </method> <method name="event_is_action" qualifiers="const"> @@ -15451,6 +15467,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) </method> <method name="load_from_globals"> <description> + Clears the [InputMap] and loads it from [Globals]. </description> </method> </methods> |
