How to check TouchScreenButton Key up

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By tommyabbccc

Hello everyone
Anyone know how to check TouchScreenButton Key up

The following is my code.

func _on_TouchScreenButton_pressed():
scale = Vector2(0.25, 0.25)

How to check on key up??? Thank

such as
if func _on_TouchScreenButton_keyup:
scale = Vector2(1, 1)

:bust_in_silhouette: Reply From: deaton64


Select the button in the scene.
Click on the “Node” tab next to the “Inspector” tab.
Connect the signal released()

Something like: func _on_TouchScreenButton_released() -> void:

It worked for me, Thank you very much, Have a nice day

tommyabbccc | 2021-01-15 07:52

you’re welcome… you too!

deaton64 | 2021-01-15 16:41