1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00

Merge pull request #5262 from vnen/button-signals

Add button_down and button_up signals
This commit is contained in:
Rémi Verschelde
2016-08-30 16:49:12 +02:00
committed by GitHub
2 changed files with 23 additions and 2 deletions

View File

@@ -5922,14 +5922,24 @@
</method>
</methods>
<signals>
<signal name="button_down">
<description>
Emitted when the button starts being held down.
</description>
</signal>
<signal name="button_up">
<description>
Emitted when the button stops being held down.
</description>
</signal>
<signal name="pressed">
<description>
This signal is emitted every time the button is pressed or toggled.
This signal is emitted every time the button is toggled or pressed (i.e. activated, so on [code]button_down[/code] if "Click on press" is active and on [code]button_up[/code] otherwise).
</description>
</signal>
<signal name="released">
<description>
This signal is emitted when the button was released.
Emitted when the button was released. This is only emitted by non-toggle buttons and if "Click on press" is active.
</description>
</signal>
<signal name="toggled">