Merge pull request #17606 from PJB3005/18-03-18-just-pressed-action-docs-update

Improve Input.is_action_just_* docs.

[ci skip]
This commit is contained in:
Poommetee Ketson 2018-03-19 08:34:59 +07:00 committed by GitHub
commit fc4e772286
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -182,7 +182,8 @@
<argument index="0" name="action" type="String"> <argument index="0" name="action" type="String">
</argument> </argument>
<description> <description>
Returns [code]true[/code] when you start pressing the action event. Returns [code]true[/code] when the user starts pressing the action event, meaning it's true only on the frame that the user pressed down the button.
This is useful for code that needs to run only once when an action is pressed, instead of every frame while it's pressed.
</description> </description>
</method> </method>
<method name="is_action_just_released" qualifiers="const"> <method name="is_action_just_released" qualifiers="const">
@ -191,7 +192,7 @@
<argument index="0" name="action" type="String"> <argument index="0" name="action" type="String">
</argument> </argument>
<description> <description>
Returns [code]true[/code] when you stop pressing the action event. Returns [code]true[/code] when the user stops pressing the action event, meaning it's true only on the frame that the user released the button.
</description> </description>
</method> </method>
<method name="is_action_pressed" qualifiers="const"> <method name="is_action_pressed" qualifiers="const">