7c3ba6f72b
- Generate a correkt rst-syntax for the [/code] inline markup. (http://www.sphinx-doc.org/en/1.6.5/rest.html#inline-markup) - Fix xml souce bugs for the sphinx's rst syntax werrors: class_area.rst:319: WARNING: Inline literal start-string without end-string. class_area2d.rst:287: WARNING: Inline literal start-string without end-string. class_audioserver.rst:287: WARNING: Inline literal start-string without end-string. class_control.rst:509: WARNING: Inline literal start-string without end-string. class_image.rst:422: WARNING: Inline literal start-string without end-string. class_image.rst:434: WARNING: Inline literal start-string without end-string. class_inputevent.rst:74: WARNING: Inline literal start-string without end-string. class_inputeventaction.rst:45: WARNING: Inline literal start-string without end-string. class_inputmap.rst:47: WARNING: Inline literal start-string without end-string. class_kinematicbody.rst:80: WARNING: Inline interpreted text or phrase reference start-string without end-string. class_kinematicbody2d.rst:80: WARNING: Inline interpreted text or phrase reference start-string without end-string. class_line2d.rst:182: WARNING: Inline literal start-string without end-string. class_thread.rst:51: WARNING: Inline literal start-string without end-string. class_treeitem.rst:160: WARNING: Inline literal start-string without end-string.
113 lines
3.6 KiB
XML
113 lines
3.6 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="InputMap" inherits="Object" category="Core" version="3.0-alpha">
|
|
<brief_description>
|
|
Singleton that manages [InputEventAction].
|
|
</brief_description>
|
|
<description>
|
|
Manages all [InputEventAction] which can be created/modified from the project settings menu [code]Project > Project Settings > Input Map[/code] or in code with [method add_action] and [method action_add_event]. See [method Node._input].
|
|
</description>
|
|
<tutorials>
|
|
http://docs.godotengine.org/en/stable/learning/features/inputs/inputevent.html#inputmap
|
|
</tutorials>
|
|
<demos>
|
|
</demos>
|
|
<methods>
|
|
<method name="action_add_event">
|
|
<return type="void">
|
|
</return>
|
|
<argument index="0" name="action" type="String">
|
|
</argument>
|
|
<argument index="1" name="event" type="InputEvent">
|
|
</argument>
|
|
<description>
|
|
Adds an [InputEvent] to an action. This [InputEvent] will trigger the action.
|
|
</description>
|
|
</method>
|
|
<method name="action_erase_event">
|
|
<return type="void">
|
|
</return>
|
|
<argument index="0" name="action" type="String">
|
|
</argument>
|
|
<argument index="1" name="event" type="InputEvent">
|
|
</argument>
|
|
<description>
|
|
Removes an [InputEvent] from an action.
|
|
</description>
|
|
</method>
|
|
<method name="action_has_event">
|
|
<return type="bool">
|
|
</return>
|
|
<argument index="0" name="action" type="String">
|
|
</argument>
|
|
<argument index="1" name="event" type="InputEvent">
|
|
</argument>
|
|
<description>
|
|
Returns [true] if an action has an [InputEvent] associated with it.
|
|
</description>
|
|
</method>
|
|
<method name="add_action">
|
|
<return type="void">
|
|
</return>
|
|
<argument index="0" name="action" type="String">
|
|
</argument>
|
|
<description>
|
|
Adds an (empty) action to the [code]InputMap[/code]. An [InputEvent] can then be added to this action with [method action_add_event].
|
|
</description>
|
|
</method>
|
|
<method name="erase_action">
|
|
<return type="void">
|
|
</return>
|
|
<argument index="0" name="action" type="String">
|
|
</argument>
|
|
<description>
|
|
Removes an action from the [code]InputMap[/code].
|
|
</description>
|
|
</method>
|
|
<method name="event_is_action" qualifiers="const">
|
|
<return type="bool">
|
|
</return>
|
|
<argument index="0" name="event" type="InputEvent">
|
|
</argument>
|
|
<argument index="1" name="action" type="String">
|
|
</argument>
|
|
<description>
|
|
Returns [true] if the given event is part of an existing action. This method ignores keyboard modifiers if the given [InputEvent] is not pressed (for proper release detection). See [method action_has_event] if you don't want this behavior.
|
|
</description>
|
|
</method>
|
|
<method name="get_action_list">
|
|
<return type="Array">
|
|
</return>
|
|
<argument index="0" name="action" type="String">
|
|
</argument>
|
|
<description>
|
|
Returns an array of [InputEvent]s associated with a given action.
|
|
</description>
|
|
</method>
|
|
<method name="get_actions">
|
|
<return type="Array">
|
|
</return>
|
|
<description>
|
|
Returns an array of all actions in the [code]InputMap[/code].
|
|
</description>
|
|
</method>
|
|
<method name="has_action" qualifiers="const">
|
|
<return type="bool">
|
|
</return>
|
|
<argument index="0" name="action" type="String">
|
|
</argument>
|
|
<description>
|
|
Returns [code]true[/code] if the [code]InputMap[/code] has a registered action with the given name.
|
|
</description>
|
|
</method>
|
|
<method name="load_from_globals">
|
|
<return type="void">
|
|
</return>
|
|
<description>
|
|
Clears all [InputEventAction] in the [code]InputMap[/code] and load it anew from [ProjectSettings].
|
|
</description>
|
|
</method>
|
|
</methods>
|
|
<constants>
|
|
</constants>
|
|
</class>
|