How to simulate the pressing of the Input in another part of the code to make the touchscreen??

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ismaelgame7
:warning: Old Version Published before Godot 3 was released.

Hello again Godoters,

I wanted to call an Input from here:

In that other part of the code to make the touchscreen controls:

I simply want to replace the “# OS.alert” with a keys that is in the Input function.

If someone who understands this subject can help me I would be very happy and grateful :smiley:

Do you know that you can use TouchScreenButton nodes to fire Input actions?

TouchScreenButton can auto-hide if not on mobile and use the same action mapped for other forms of input (used with events and Input).

eons | 2017-10-20 22:50

Thanks eons, I searched the internet and found this video:
https://www.youtube.com/watch?v=gylnwemFIZc

I hope this helps somebody :slight_smile:

ismaelgame7 | 2017-12-06 02:19