How do I make it so if I press an xbox controller button, it will automatticaly press a button node?

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

Sorry there is no more

Detect the pressed button. Decide what button node should be triggered. Call the code of that node.

Please provide more details and your code if you need more detailed answer.

StopNot | 2021-07-02 07:45

:bust_in_silhouette: Reply From: Kolandrious

In the place, where you register the input, just call the button’s method.
Or fire a signal and connect the signal to the button’s onPress method