From f12db4013e211199eb9203540c2018e5a7c3834e Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Sun, 18 Mar 2018 13:41:25 +0100 Subject: [PATCH] Improve Input.is_action_just_* docs. More clarification. (cherry picked from commit 11aa330a6f4f1111d8b53abf4425f842f5bcae2b) --- doc/classes/Input.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/classes/Input.xml b/doc/classes/Input.xml index 49c1dd6031..e0bc444bb8 100644 --- a/doc/classes/Input.xml +++ b/doc/classes/Input.xml @@ -182,7 +182,8 @@ - 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. @@ -191,7 +192,7 @@ - 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.