2017-09-12 20:42:36 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2018-02-19 09:46:33 +00:00
|
|
|
<class name="ShortCut" inherits="Resource" category="Core" version="3.1-dev">
|
2017-09-12 20:42:36 +00:00
|
|
|
<brief_description>
|
2017-11-26 19:58:38 +00:00
|
|
|
A shortcut for binding input.
|
2017-09-12 20:42:36 +00:00
|
|
|
</brief_description>
|
|
|
|
<description>
|
2017-11-26 19:58:38 +00:00
|
|
|
A shortcut for binding input.
|
|
|
|
Shortcuts are commonly used for interacting with a [Control] element from a [InputEvent].
|
2017-09-12 20:42:36 +00:00
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<demos>
|
|
|
|
</demos>
|
|
|
|
<methods>
|
|
|
|
<method name="get_as_text" qualifiers="const">
|
|
|
|
<return type="String">
|
|
|
|
</return>
|
|
|
|
<description>
|
2017-11-26 19:58:38 +00:00
|
|
|
Returns the Shortcut's [InputEvent] as a [String].
|
2017-09-12 20:42:36 +00:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="is_shortcut" qualifiers="const">
|
|
|
|
<return type="bool">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="event" type="InputEvent">
|
|
|
|
</argument>
|
|
|
|
<description>
|
2017-11-26 19:58:38 +00:00
|
|
|
Returns [code]true[/code] if the Shortcut's [InputEvent] equals [code]event[/code].
|
2017-09-12 20:42:36 +00:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="is_valid" qualifiers="const">
|
|
|
|
<return type="bool">
|
|
|
|
</return>
|
|
|
|
<description>
|
2017-11-26 19:58:38 +00:00
|
|
|
If [code]true[/code] this Shortcut is valid.
|
2017-09-12 20:42:36 +00:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
</methods>
|
|
|
|
<members>
|
2017-09-13 06:49:40 +00:00
|
|
|
<member name="shortcut" type="InputEvent" setter="set_shortcut" getter="get_shortcut">
|
2017-11-26 19:58:38 +00:00
|
|
|
The Shortcut's [InputEvent].
|
|
|
|
Generally the [InputEvent] is a keyboard key, though it can be any [InputEvent].
|
2017-09-12 20:42:36 +00:00
|
|
|
</member>
|
|
|
|
</members>
|
|
|
|
<constants>
|
|
|
|
</constants>
|
|
|
|
</class>
|